Skip to content

Commit

Permalink
pinctrl/lantiq: fix pin number in ltq_pmx_gpio_request_enable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
John Crispin authored and Linus Walleij committed Feb 5, 2013
1 parent c58bdc3 commit d8a7c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/pinctrl-lantiq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d8a7c1f

Please sign in to comment.