bump to v3.8
[openwrt/openwrt.git] / target / linux / lantiq / patches-3.8 / 0010-PINCTRL-lantiq-only-probe-available-pad-controllers.patch
1 From 997390a8802e21b4b57d0ffcd91ad64651f1c2bf Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Wed, 30 Jan 2013 20:02:06 +0100
4 Subject: [PATCH 10/40] PINCTRL: lantiq: only probe available pad controllers
5
6 The template falcon.dtsi lists all 6 pad controllers that can be loaded. Only
7 probe those that have status = "okay"; inside the dts file.
8
9 Signed-off-by: John Crispin <blogic@openwrt.org>
10 ---
11 drivers/pinctrl/pinctrl-falcon.c | 3 +++
12 1 file changed, 3 insertions(+)
13
14 diff --git a/drivers/pinctrl/pinctrl-falcon.c b/drivers/pinctrl/pinctrl-falcon.c
15 index 8ed20e8..6331c5c 100644
16 --- a/drivers/pinctrl/pinctrl-falcon.c
17 +++ b/drivers/pinctrl/pinctrl-falcon.c
18 @@ -398,6 +398,9 @@ static int pinctrl_falcon_probe(struct platform_device *pdev)
19 u32 avail;
20 int pins;
21
22 + if (!of_device_is_available(np))
23 + continue;
24 +
25 if (!ppdev) {
26 dev_err(&pdev->dev, "failed to find pad pdev\n");
27 continue;
28 --
29 1.7.10.4
30