Skip to content

Commit

Permalink
pinctrl/lantiq: only probe available pad controllers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
John Crispin authored and Linus Walleij committed Feb 5, 2013
1 parent 9338628 commit a8ae367
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/pinctrl/pinctrl-falcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a8ae367

Please sign in to comment.