diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-01-17 15:55:32 +0000 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-01-19 00:15:09 +0100 |
commit | 8dca4a41f1ad65043a78c2338d9725f859c8d2c3 (patch) | |
tree | e1c09be45d9c23b22962b10fe0e8c08a30eaeed4 | |
parent | 1fe8d6cbfb47deff69e6fad2a33c044ac745679c (diff) | |
download | op-kernel-dev-8dca4a41f1ad65043a78c2338d9725f859c8d2c3.zip op-kernel-dev-8dca4a41f1ad65043a78c2338d9725f859c8d2c3.tar.gz |
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>
-rw-r--r-- | drivers/pinctrl/pinctrl-amd.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-amd.c b/drivers/pinctrl/pinctrl-amd.c index 1ee107f..6b75bd2 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; } |