diff options
author | Varka Bhadram <varkabhadram@gmail.com> | 2015-04-07 18:04:40 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-04-08 16:54:01 +0200 |
commit | c4941e072ed5ac1aaad7365ba1290fdd44e7058c (patch) | |
tree | 93a4830f439c3532eb713e34ec39f2b0fcc961a6 /drivers/gpio/gpio-adp5588.c | |
parent | gpio: mvebu: Fix mask/unmask managment per irq chip type (diff) | |
download | linux-c4941e072ed5ac1aaad7365ba1290fdd44e7058c.tar.xz linux-c4941e072ed5ac1aaad7365ba1290fdd44e7058c.zip |
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>
Diffstat (limited to 'drivers/gpio/gpio-adp5588.c')
-rw-r--r-- | drivers/gpio/gpio-adp5588.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-adp5588.c b/drivers/gpio/gpio-adp5588.c index c90273dac289..d3fe6a6776da 100644 --- a/drivers/gpio/gpio-adp5588.c +++ b/drivers/gpio/gpio-adp5588.c @@ -471,7 +471,6 @@ static int adp5588_gpio_remove(struct i2c_client *client) gpiochip_remove(&dev->gpio_chip); - kfree(dev); return 0; } |