pinctrl: pistachio: Drop pinctrl_unregister for devm_ registered device
authorWei Yongjun <weiyj.lk@gmail.com>
Tue, 26 Jul 2016 14:52:57 +0000 (14:52 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 10 Aug 2016 13:45:54 +0000 (15:45 +0200)
commitb120a3c286520ca465c54e8afa442be10560053b
tree43a04f4d04a18212d041c97f86abc569cc556ced
parent5b236d0fde21d88351420ef0b9a6cb7aeeea0c54
pinctrl: pistachio: 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.

This is detected by Coccinelle semantic patch.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-pistachio.c