summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/pinctrl-amd.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-01-17 18:55:32 +0300
committerLinus Walleij <linus.walleij@linaro.org>2017-01-19 02:15:09 +0300
commit8dca4a41f1ad65043a78c2338d9725f859c8d2c3 (patch)
treee1c09be45d9c23b22962b10fe0e8c08a30eaeed4 /drivers/pinctrl/pinctrl-amd.c
parent1fe8d6cbfb47deff69e6fad2a33c044ac745679c (diff)
downloadlinux-8dca4a41f1ad65043a78c2338d9725f859c8d2c3.tar.xz
pinctrl/amd: Drop pinctrl_unregister for devm_ registered device
It's not necessary to unregister pin controller device registered with devm_pinctrl_register() and using pinctrl_unregister() leads to a double free. Fixes: 3bfd44306c65 ("pinctrl: amd: Add support for additional GPIO") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-amd.c')
-rw-r--r--drivers/pinctrl/pinctrl-amd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-amd.c b/drivers/pinctrl/pinctrl-amd.c
index 1ee107f147d0..6b75bd2b71db 100644
--- a/drivers/pinctrl/pinctrl-amd.c
+++ b/drivers/pinctrl/pinctrl-amd.c
@@ -836,7 +836,6 @@ static int amd_gpio_remove(struct platform_device *pdev)
gpio_dev = platform_get_drvdata(pdev);
gpiochip_remove(&gpio_dev->gc);
- pinctrl_unregister(gpio_dev->pctrl);
return 0;
}