pinctrl: msm: Use dynamic GPIO numbering
[ Upstream commit a7aa75a2a7dba32594291a71c3704000a2fd7089 ] 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> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4c9701fd43
commit
0bd77073e6
@ -790,7 +790,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user