summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorAndrei Coardos <aboutphysycs@gmail.com>2023-07-19 12:39:23 +0300
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-07-29 16:04:38 +0200
commitba8a90e8cb8ca4db4e57be6b53aa8c364137b38c (patch)
treefc203edb4f48350ff223cbd95bb0f752f65521bd /drivers/gpio
parent28e6c5b86ac3756235b9a0ae6b1409f6ac33cd09 (diff)
gpio: exar: remove unneeded platform_set_drvdata() call
The platform_set_drvdata() was needed when the driver had an explicit remove function. That function got removed a while back, so we don't need to keep a pointer (on 'dev->driver_data') for the private data of the driver anymore. Reviewed-by: Alexandru Ardelean <alex@shruggie.ro> Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com> Reviewed-by: Andy Shevchenko <andy@kernel.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-exar.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-exar.c b/drivers/gpio/gpio-exar.c
index df1bdaae441c..5170fe7599cd 100644
--- a/drivers/gpio/gpio-exar.c
+++ b/drivers/gpio/gpio-exar.c
@@ -217,8 +217,6 @@ static int gpio_exar_probe(struct platform_device *pdev)
if (ret)
return ret;
- platform_set_drvdata(pdev, exar_gpio);
-
return 0;
}