diff options
author | Andrei Coardos <aboutphysycs@gmail.com> | 2023-07-19 11:48:03 +0200 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-07-29 16:05:50 +0200 |
commit | 8020619ad785c87e807ca9f782238294c2a602e0 (patch) | |
tree | d4e82f8259898b935b16e5517f7296c2fea0458f /drivers/gpio/gpio-logicvc.c | |
parent | gpio: exar: remove unneeded platform_set_drvdata() call (diff) | |
download | linux-8020619ad785c87e807ca9f782238294c2a602e0.tar.xz linux-8020619ad785c87e807ca9f782238294c2a602e0.zip |
gpio: logicvc: remove unneeded platform_set_drvdata() call
The platform_set_drvdata() isn't needed for anything. The function is a
simple setter that doesn't change anything in the code. That is because
there isn't a get function and since it has no dependencies it can be
removed.
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/gpio-logicvc.c')
-rw-r--r-- | drivers/gpio/gpio-logicvc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-logicvc.c b/drivers/gpio/gpio-logicvc.c index 2b9876bc1383..05d62011f335 100644 --- a/drivers/gpio/gpio-logicvc.c +++ b/drivers/gpio/gpio-logicvc.c @@ -138,8 +138,6 @@ static int logicvc_gpio_probe(struct platform_device *pdev) logicvc->chip.set = logicvc_gpio_set; logicvc->chip.direction_output = logicvc_gpio_direction_output; - platform_set_drvdata(pdev, logicvc); - return devm_gpiochip_add_data(dev, &logicvc->chip, logicvc); } |