aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/pinctrl-mxs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-mxs.c b/drivers/pinctrl/pinctrl-mxs.c
index 9d46303a84e7..afb50ee64598 100644
--- a/drivers/pinctrl/pinctrl-mxs.c
+++ b/drivers/pinctrl/pinctrl-mxs.c
@@ -516,6 +516,7 @@ int __devinit mxs_pinctrl_probe(struct platform_device *pdev,
516 return 0; 516 return 0;
517 517
518err: 518err:
519 platform_set_drvdata(pdev, NULL);
519 iounmap(d->base); 520 iounmap(d->base);
520 return ret; 521 return ret;
521} 522}
@@ -525,6 +526,7 @@ int __devexit mxs_pinctrl_remove(struct platform_device *pdev)
525{ 526{
526 struct mxs_pinctrl_data *d = platform_get_drvdata(pdev); 527 struct mxs_pinctrl_data *d = platform_get_drvdata(pdev);
527 528
529 platform_set_drvdata(pdev, NULL);
528 pinctrl_unregister(d->pctl); 530 pinctrl_unregister(d->pctl);
529 iounmap(d->base); 531 iounmap(d->base);
530 532