提交 a7aa75a2 编写于 作者: B Bjorn Andersson 提交者: Linus Walleij

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: f365be09 ("pinctrl: Add Qualcomm TLMM driver")
Reported-by: NTimur Tabi <timur@codeaurora.org>
Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 1781af56
...@@ -818,7 +818,7 @@ static int msm_gpio_init(struct msm_pinctrl *pctrl) ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册