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:
parent
c58bdc36bc
commit
d8a7c1f134
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue