Browse Source

pinctrl/lantiq: only probe available pad controllers

The template falcon.dtsi lists all 6 pad controllers that
can be loaded. Only probe those that have status = "okay";
inside the dts file.

Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
John Crispin 12 years ago
parent
commit
a8ae367f40
1 changed files with 3 additions and 0 deletions
  1. 3 0
      drivers/pinctrl/pinctrl-falcon.c

+ 3 - 0
drivers/pinctrl/pinctrl-falcon.c

@@ -398,6 +398,9 @@ static int pinctrl_falcon_probe(struct platform_device *pdev)
 		u32 avail;
 		int pins;
 
+		if (!of_device_is_available(np))
+			continue;
+
 		if (!ppdev) {
 			dev_err(&pdev->dev, "failed to find pad pdev\n");
 			continue;