]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: removing kfree remove functionality
authorVarka Bhadram <varkabhadram@gmail.com>
Tue, 7 Apr 2015 16:04:40 +0000 (21:34 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 8 Apr 2015 14:54:01 +0000 (16:54 +0200)
commitd68514dc20b14b24d701c4adb805b4dde3b80a5c
tree93a4830f439c3532eb713e34ec39f2b0fcc961a6
parentafa3af4558d1d7e408c886aa68372fbff148eec0
gpio: removing kfree remove functionality

commit 3de07e5aaf290a0b58919 ("drivers: gpio: use devm_kzalloc")
introduce devm_kzalloc() for allocating the memory. In this case kfree
is not required to use. Above commit id introduced the bug that kfree
is not removed from the remove function.

This patch fix the above bug.

Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-adp5588.c
drivers/gpio/gpio-mcp23s08.c