lantiq: add wifi eep to a803 dts file
[openwrt/openwrt.git] / target / linux / lantiq / patches-3.8 / 0015-PINCTRL-lantiq-fix-pin-number-in-ltq_pmx_gpio_reques.patch
1 From 363f0d3dc146215744363db97606a357310fad3d Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Wed, 30 Jan 2013 21:23:22 +0100
4 Subject: [PATCH 15/40] PINCTRL: lantiq: fix pin number in
5 ltq_pmx_gpio_request_enable
6
7 The mapping logic inside ltq_pmx_gpio_request_enable() was broken. This only
8 effected Falcon SoC.
9
10 Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
11 Signed-off-by: John Crispin <blogic@openwrt.org>
12 ---
13 drivers/pinctrl/pinctrl-lantiq.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/drivers/pinctrl/pinctrl-lantiq.c
17 +++ b/drivers/pinctrl/pinctrl-lantiq.c
18 @@ -294,7 +294,7 @@ static int ltq_pmx_gpio_request_enable(s
19 unsigned pin)
20 {
21 struct ltq_pinmux_info *info = pinctrl_dev_get_drvdata(pctrldev);
22 - int mfp = match_mfp(info, pin + (range->id * 32));
23 + int mfp = match_mfp(info, pin);
24 int pin_func;
25
26 if (mfp < 0) {