From: John Crispin Date: Fri, 1 Feb 2013 12:05:00 +0000 (+0100) Subject: pinctrl/lantiq: only probe available pad controllers X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a8ae367f40867fde80c90484c90b96c3968c224b;p=linux-beck.git 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 Signed-off-by: Linus Walleij --- 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) u32 avail; int pins; + if (!of_device_is_available(np)) + continue; + if (!ppdev) { dev_err(&pdev->dev, "failed to find pad pdev\n"); continue;