]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
pinctrl: msm: Use dynamic GPIO numbering
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 29 Jan 2018 00:59:48 +0000 (16:59 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 12 Feb 2018 09:47:24 +0000 (10:47 +0100)
The base of the TLMM gpiochip should not be statically defined as 0, fix
this to not artificially restrict the existence of multiple pinctrl-msm
devices.

Fixes: f365be092572 ("pinctrl: Add Qualcomm TLMM driver")
Reported-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-msm.c

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