diff options
author | Markus Pargmann <mpa@pengutronix.de> | 2013-11-11 19:19:47 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-11-25 09:08:30 +0100 |
commit | 31d610f19670825a0058b70f44570e9ab21a0011 (patch) | |
tree | 875478feb2815006f39dbc8405eaa686d78ba67b /drivers/pinctrl/pinctrl-imx1-core.c | |
parent | b9f2f2ecce737910be1333609d43c8fbbfe8e68f (diff) | |
download | blackbird-obmc-linux-31d610f19670825a0058b70f44570e9ab21a0011.tar.gz blackbird-obmc-linux-31d610f19670825a0058b70f44570e9ab21a0011.zip |
pinctrl: imx1-core populate subdevices
Support gpio devicetree subnodes to allow a more detailed DT hardware
description.
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-imx1-core.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-imx1-core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-imx1-core.c b/drivers/pinctrl/pinctrl-imx1-core.c index f77914ac081a..17aecde1b51d 100644 --- a/drivers/pinctrl/pinctrl-imx1-core.c +++ b/drivers/pinctrl/pinctrl-imx1-core.c @@ -638,6 +638,13 @@ int imx1_pinctrl_core_probe(struct platform_device *pdev, return -EINVAL; } + ret = of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev); + if (ret) { + pinctrl_unregister(ipctl->pctl); + dev_err(&pdev->dev, "Failed to populate subdevices\n"); + return ret; + } + dev_info(&pdev->dev, "initialized IMX pinctrl driver\n"); return 0; |