]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pinctrl/lantiq: fix pin number in ltq_pmx_gpio_request_enable
authorJohn Crispin <blogic@openwrt.org>
Fri, 1 Feb 2013 12:05:05 +0000 (13:05 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Feb 2013 15:17:26 +0000 (16:17 +0100)
The mapping logic inside ltq_pmx_gpio_request_enable() was
broken. This only effected Falcon SoC.

Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-lantiq.c

index 7d110722dfd1ee01514649c71d7e904fedce833b..a70384611351411a8396aa23288649aa044c283b 100644 (file)
@@ -294,7 +294,7 @@ static int ltq_pmx_gpio_request_enable(struct pinctrl_dev *pctrldev,
                                unsigned pin)
 {
        struct ltq_pinmux_info *info = pinctrl_dev_get_drvdata(pctrldev);
-       int mfp = match_mfp(info, pin + (range->id * 32));
+       int mfp = match_mfp(info, pin);
        int pin_func;
 
        if (mfp < 0) {