Searched hist:"41 ec66c92299889ad30871aeede89b960f08a458" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/gpio/ |
H A D | gpio-altera.c | diff 41ec66c92299889ad30871aeede89b960f08a458 Wed Jun 17 13:59:42 CEST 2015 Masahiro Yamada <yamada.masahiro@socionext.com> gpio: altera: use of_mm_gpiochip_remove() to fix memory leak
This driver calls of_mm_gpiochip_add() to add a memory mapped gpio chip. So, of_mm_gpiochip_remove() should be used when removing it.
The direct call of gpiochip_remove() misses unmapping the register and freeing the label.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Acked-by: Tien Hock Loh <thloh@altera.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|