]> git.itanic.dy.fi Git - linux-stable/commitdiff
Revert "pinctrl: msm: Use dynamic GPIO numbering"
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 May 2018 15:58:13 +0000 (17:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2018 09:46:09 +0000 (11:46 +0200)
This reverts commit 7d8e0341b2b93fb505cd75e8e0d4f1911d0fa0fe which is
commit a7aa75a2a7dba32594291a71c3704000a2fd7089 upstream.

There's been too many complaints about this.  Personally I think it's
going to blow up when people hit this in mainline, but hey, it's not my
systems.  At least we don't have to backport the mess to the stable
kernels to give them some more life to live unscathed :)

Reported-by: Timur Tabi <timur@codeaurora.org>
Reported-by: Sebastian Gottschall <s.gottschall@dd-wrt.com>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/qcom/pinctrl-msm.c

index 95e5c5ea40af212a271fe62155687743198c4518..495432f3341baa1d24621f55b6e03bcb6fd8c471 100644 (file)
@@ -818,7 +818,7 @@ static int msm_gpio_init(struct msm_pinctrl *pctrl)
                return -EINVAL;
 
        chip = &pctrl->chip;
-       chip->base = -1;
+       chip->base = 0;
        chip->ngpio = ngpio;
        chip->label = dev_name(pctrl->dev);
        chip->parent = pctrl->dev;