summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorCaleb Connolly <caleb.connolly@linaro.org>2023-12-05 13:46:52 +0000
committerCaleb Connolly <caleb.connolly@linaro.org>2024-01-16 12:26:53 +0000
commitf1d66ed728c6eef6a91522ba989348b4a69939c1 (patch)
treedd592cf1b3e6ca3cd250997b4e358c4b7fd7fd73 /drivers
parenta712ececbd41f14e26dcfd0a794b0f2c86560eb5 (diff)
downloadu-boot-f1d66ed728c6eef6a91522ba989348b4a69939c1.tar.gz
u-boot-f1d66ed728c6eef6a91522ba989348b4a69939c1.tar.bz2
u-boot-f1d66ed728c6eef6a91522ba989348b4a69939c1.zip
gpio: qcom_pmic: drop gpio-count property
This property is not part of the dt bindings and all boards use the new gpio-ranges property instead. Drop support for this. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/qcom_pmic_gpio.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/gpio/qcom_pmic_gpio.c b/drivers/gpio/qcom_pmic_gpio.c
index 5221bd2782..6167c84116 100644
--- a/drivers/gpio/qcom_pmic_gpio.c
+++ b/drivers/gpio/qcom_pmic_gpio.c
@@ -268,14 +268,11 @@ static int qcom_gpio_of_to_plat(struct udevice *dev)
struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev);
int ret;
- uc_priv->gpio_count = dev_read_u32_default(dev, "gpio-count", 0);
- if (!uc_priv->gpio_count) {
- ret = qcom_gpio_of_parse_ranges(dev);
- if (ret > 0)
- uc_priv->gpio_count = ret;
- else
- return ret;
- }
+ ret = qcom_gpio_of_parse_ranges(dev);
+ if (ret > 0)
+ uc_priv->gpio_count = ret;
+ else
+ return ret;
uc_priv->bank_name = "pmic";