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
7 The mapping logic inside ltq_pmx_gpio_request_enable() was broken. This only
10 Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
11 Signed-off-by: John Crispin <blogic@openwrt.org>
13 drivers/pinctrl/pinctrl-lantiq.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
16 diff --git a/drivers/pinctrl/pinctrl-lantiq.c b/drivers/pinctrl/pinctrl-lantiq.c
17 index 7d11072..a703846 100644
18 --- a/drivers/pinctrl/pinctrl-lantiq.c
19 +++ b/drivers/pinctrl/pinctrl-lantiq.c
20 @@ -294,7 +294,7 @@ static int ltq_pmx_gpio_request_enable(struct pinctrl_dev *pctrldev,
23 struct ltq_pinmux_info *info = pinctrl_dev_get_drvdata(pctrldev);
24 - int mfp = match_mfp(info, pin + (range->id * 32));
25 + int mfp = match_mfp(info, pin);