Skip to content
Browse files

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: 3bfd443 ("pinctrl: amd: Add support for additional GPIO")
Signed-off-by: Wei Yongjun <>
Signed-off-by: Linus Walleij <>
  • Loading branch information...
Wei Yongjun authored and linusw committed Jan 17, 2017
1 parent 1fe8d6c commit 8dca4a41f1ad65043a78c2338d9725f859c8d2c3
Showing with 0 additions and 1 deletion.
  1. +0 −1 drivers/pinctrl/pinctrl-amd.c
@@ -836,7 +836,6 @@ static int amd_gpio_remove(struct platform_device *pdev)
gpio_dev = platform_get_drvdata(pdev);


return 0;

0 comments on commit 8dca4a4

Please sign in to comment.
You can’t perform that action at this time.