Re: [PATCH 1/1] usb: dwc3: Use devm_kzalloc

2012-12-12 Thread Felipe Balbi
Hi, On Wed, Dec 12, 2012 at 05:08:09PM +0530, Sachin Kamat wrote: > On 12 December 2012 16:51, Felipe Balbi wrote: > > On Wed, Dec 12, 2012 at 04:13:15PM +0530, Sachin Kamat wrote: > >> devm_kzalloc is device managed and makes error handling and cleanup > >> simpler. While at it also fixed the re

Re: [PATCH 1/1] usb: dwc3: Use devm_kzalloc

2012-12-12 Thread Sachin Kamat
On 12 December 2012 16:51, Felipe Balbi wrote: > On Wed, Dec 12, 2012 at 04:13:15PM +0530, Sachin Kamat wrote: >> devm_kzalloc is device managed and makes error handling and cleanup >> simpler. While at it also fixed the return value when platform_device_alloc >> failed in probe function. >> >> Cc

Re: [PATCH 1/1] usb: dwc3: Use devm_kzalloc

2012-12-12 Thread Felipe Balbi
On Wed, Dec 12, 2012 at 04:13:15PM +0530, Sachin Kamat wrote: > devm_kzalloc is device managed and makes error handling and cleanup > simpler. While at it also fixed the return value when platform_device_alloc > failed in probe function. > > Cc: Anton Tikhomirov > Signed-off-by: Sachin Kamat wh

[PATCH 1/1] usb: dwc3: Use devm_kzalloc

2012-12-12 Thread Sachin Kamat
devm_kzalloc is device managed and makes error handling and cleanup simpler. While at it also fixed the return value when platform_device_alloc failed in probe function. Cc: Anton Tikhomirov Signed-off-by: Sachin Kamat --- Compile tested on linux-next tree. --- drivers/usb/dwc3/dwc3-exynos.c |