mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
pinctrl: msm: Use dynamic GPIO numbering
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: f365be0925
("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>
This commit is contained in:
parent
1781af563a
commit
a7aa75a2a7
1 changed files with 1 additions and 1 deletions
|
@ -818,7 +818,7 @@ static int msm_gpio_init(struct msm_pinctrl *pctrl)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
chip = &pctrl->chip;
|
chip = &pctrl->chip;
|
||||||
chip->base = 0;
|
chip->base = -1;
|
||||||
chip->ngpio = ngpio;
|
chip->ngpio = ngpio;
|
||||||
chip->label = dev_name(pctrl->dev);
|
chip->label = dev_name(pctrl->dev);
|
||||||
chip->parent = pctrl->dev;
|
chip->parent = pctrl->dev;
|
||||||
|
|
Loading…
Reference in a new issue