pinctrl/lantiq: fix pin number in ltq_pmx_gpio_request_enable

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>
This commit is contained in:
John Crispin 2013-02-01 13:05:05 +01:00 committed by Linus Walleij
parent c58bdc36bc
commit d8a7c1f134
1 changed files with 1 additions and 1 deletions

View 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) {