pinctrl/amd: Drop pinctrl_unregister for devm_ registered device
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 17 Jan 2017 15:55:32 +0000 (15:55 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Jan 2017 23:15:09 +0000 (00:15 +0100)
commit8dca4a41f1ad65043a78c2338d9725f859c8d2c3
treee1c09be45d9c23b22962b10fe0e8c08a30eaeed4
parent1fe8d6cbfb47deff69e6fad2a33c044ac745679c
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>
drivers/pinctrl/pinctrl-amd.c