diff options
author | John Crispin <blogic@openwrt.org> | 2013-02-01 07:05:00 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-02-05 10:17:24 -0500 |
commit | a8ae367f40867fde80c90484c90b96c3968c224b (patch) | |
tree | 60dbd48f74e7be6103ffb9222e63dcff540d7e27 /drivers/pinctrl/pinctrl-falcon.c | |
parent | 933862873740923a059cbcda0c66487c6179ba3c (diff) |
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>
Diffstat (limited to 'drivers/pinctrl/pinctrl-falcon.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-falcon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-falcon.c b/drivers/pinctrl/pinctrl-falcon.c index 8ed20e84cb02..6331c5c25dbb 100644 --- a/drivers/pinctrl/pinctrl-falcon.c +++ b/drivers/pinctrl/pinctrl-falcon.c | |||
@@ -398,6 +398,9 @@ static int pinctrl_falcon_probe(struct platform_device *pdev) | |||
398 | u32 avail; | 398 | u32 avail; |
399 | int pins; | 399 | int pins; |
400 | 400 | ||
401 | if (!of_device_is_available(np)) | ||
402 | continue; | ||
403 | |||
401 | if (!ppdev) { | 404 | if (!ppdev) { |
402 | dev_err(&pdev->dev, "failed to find pad pdev\n"); | 405 | dev_err(&pdev->dev, "failed to find pad pdev\n"); |
403 | continue; | 406 | continue; |