aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-samsung.c
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2012-10-11 04:11:11 -0400
committerLinus Walleij <linus.walleij@linaro.org>2012-10-15 03:10:11 -0400
commit724e56a48c05dacc63ceb535571eec2ad6949368 (patch)
tree286975fbff43ba769456b2e36f42c8a526727543 /drivers/pinctrl/pinctrl-samsung.c
parent3a232ba86f3a93217ac717306645c5c555429858 (diff)
pinctrl: samsung: Distinguish between pin group and bank nodes
This patch modifies the loop iterating over all child nodes and parsing pin groups to check whether the node is really a pin group node by checking for existence of samsung,pins property. This is a prerequisite for further patches adding additional subnodes to the pinctrl node, required for per bank GPIO and interrupt specifiers. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-samsung.c')
-rw-r--r--drivers/pinctrl/pinctrl-samsung.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-samsung.c b/drivers/pinctrl/pinctrl-samsung.c
index f219bb6779ef..94e13780a6a6 100644
--- a/drivers/pinctrl/pinctrl-samsung.c
+++ b/drivers/pinctrl/pinctrl-samsung.c
@@ -609,7 +609,7 @@ static int __init samsung_pinctrl_parse_dt(struct platform_device *pdev,
609 */ 609 */
610 for_each_child_of_node(dev_np, cfg_np) { 610 for_each_child_of_node(dev_np, cfg_np) {
611 u32 function; 611 u32 function;
612 if (of_find_property(cfg_np, "interrupt-controller", NULL)) 612 if (!of_find_property(cfg_np, "samsung,pins", NULL))
613 continue; 613 continue;
614 614
615 ret = samsung_pinctrl_parse_dt_pins(pdev, cfg_np, 615 ret = samsung_pinctrl_parse_dt_pins(pdev, cfg_np,