summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorAndrei Coardos <aboutphysycs@gmail.com>2023-07-28 20:20:09 +0200
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-08-01 21:26:48 +0200
commit8e85d6af1b3ceb619098c6b8a9f38e9e006e9c09 (patch)
tree9500e040d43e4ab7c343386ef9853180bae6565d /drivers/gpio
parentgpio: pmic-eic-sprd: remove unnecessary call to platform_set_drvdata() (diff)
downloadlinux-8e85d6af1b3ceb619098c6b8a9f38e9e006e9c09.tar.xz
linux-8e85d6af1b3ceb619098c6b8a9f38e9e006e9c09.zip
gpio: rc5t583: remove unneeded call to platform_set_drvdata()
This function call was found to be unnecessary as there is no equivalent platform_get_drvdata() call to access the private data of the driver. Also, the private data is defined in this driver, so there is no risk of it being accessed outside of this driver file. Reviewed-by: Alexandru Ardelean <alex@shruggie.ro> Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-rc5t583.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-rc5t583.c b/drivers/gpio/gpio-rc5t583.c
index 4fae3ebea790..c34dcadaee36 100644
--- a/drivers/gpio/gpio-rc5t583.c
+++ b/drivers/gpio/gpio-rc5t583.c
@@ -121,8 +121,6 @@ static int rc5t583_gpio_probe(struct platform_device *pdev)
if (pdata && pdata->gpio_base)
rc5t583_gpio->gpio_chip.base = pdata->gpio_base;
- platform_set_drvdata(pdev, rc5t583_gpio);
-
return devm_gpiochip_add_data(&pdev->dev, &rc5t583_gpio->gpio_chip,
rc5t583_gpio);
}