Re: [U-Boot] [PATCH] gpio: dwapb_gpio: Change to use devm_kcalloc()

2018-09-06 Thread Ley Foon Tan
On Thu, Sep 6, 2018 at 7:14 PM Marek Vasut wrote: > > On 09/06/2018 04:48 PM, Ley Foon Tan wrote: > > Change to use managed resource function devm_kcalloc(), > > so it will auto free memory when driver is removed. > > > > Signed-off-by: Ley Foon Tan > > --- > > drivers/gpio/dwapb_gpio.c | 3 +--

Re: [U-Boot] [PATCH] gpio: dwapb_gpio: Change to use devm_kcalloc()

2018-09-06 Thread Marek Vasut
On 09/06/2018 04:48 PM, Ley Foon Tan wrote: > Change to use managed resource function devm_kcalloc(), > so it will auto free memory when driver is removed. > > Signed-off-by: Ley Foon Tan > --- > drivers/gpio/dwapb_gpio.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git

[U-Boot] [PATCH] gpio: dwapb_gpio: Change to use devm_kcalloc()

2018-09-05 Thread Ley Foon Tan
Change to use managed resource function devm_kcalloc(), so it will auto free memory when driver is removed. Signed-off-by: Ley Foon Tan --- drivers/gpio/dwapb_gpio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/dwapb_gpio.c b/drivers/gpio/dwapb_gpio.c index