projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pinctrl: imxl: Use devm_pinctrl_register() for pinctrl registration
[deliverable/linux.git]
/
drivers
/
pinctrl
/
freescale
/
pinctrl-imx1-core.c
diff --git
a/drivers/pinctrl/freescale/pinctrl-imx1-core.c
b/drivers/pinctrl/freescale/pinctrl-imx1-core.c
index acaf84cadca3fcac638656638a3ea8310011c6da..b4400cb19b61be5bc629077875ae19e517cb0f68 100644
(file)
--- a/
drivers/pinctrl/freescale/pinctrl-imx1-core.c
+++ b/
drivers/pinctrl/freescale/pinctrl-imx1-core.c
@@
-635,7
+635,7
@@
int imx1_pinctrl_core_probe(struct platform_device *pdev,
ipctl->info = info;
ipctl->dev = info->dev;
platform_set_drvdata(pdev, ipctl);
ipctl->info = info;
ipctl->dev = info->dev;
platform_set_drvdata(pdev, ipctl);
- ipctl->pctl =
pinctrl_register(pctl_desc, &pdev->dev
, ipctl);
+ ipctl->pctl =
devm_pinctrl_register(&pdev->dev, pctl_desc
, ipctl);
if (IS_ERR(ipctl->pctl)) {
dev_err(&pdev->dev, "could not register IMX pinctrl driver\n");
return PTR_ERR(ipctl->pctl);
if (IS_ERR(ipctl->pctl)) {
dev_err(&pdev->dev, "could not register IMX pinctrl driver\n");
return PTR_ERR(ipctl->pctl);
@@
-652,12
+652,3
@@
int imx1_pinctrl_core_probe(struct platform_device *pdev,
return 0;
}
return 0;
}
-
-int imx1_pinctrl_core_remove(struct platform_device *pdev)
-{
- struct imx1_pinctrl *ipctl = platform_get_drvdata(pdev);
-
- pinctrl_unregister(ipctl->pctl);
-
- return 0;
-}
This page took
0.024532 seconds
and
5
git commands to generate.