On 09/19/2018 10:26 AM, 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
>
> ---
> v3:
> - Remove goto and return directly.
>
> v2:
> - Remove free() function.
> ---
>
Change to use managed resource function devm_kcalloc(),
so it will auto free memory when driver is removed.
Signed-off-by: Ley Foon Tan
---
v3:
- Remove goto and return directly.
v2:
- Remove free() function.
---
drivers/gpio/dwapb_gpio.c | 11 ++-
1 file changed, 2 insertions(+), 9
2 matches
Mail list logo