From: Bjorn Andersson Date: Mon, 29 Jan 2018 00:59:48 +0000 (-0800) Subject: pinctrl: msm: Use dynamic GPIO numbering X-Git-Tag: Ubuntu-5.2.0-15.16~4720^2~41 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a7aa75a2a7dba32594291a71c3704000a2fd7089;p=mirror_ubuntu-eoan-kernel.git 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: f365be092572 ("pinctrl: Add Qualcomm TLMM driver") Reported-by: Timur Tabi Signed-off-by: Bjorn Andersson Signed-off-by: Linus Walleij --- diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index 495432f3341b..95e5c5ea40af 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -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;