Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andrei Coardos and committed by
Bartosz Golaszewski
ba8a90e8 28e6c5b8

-2
-2
drivers/gpio/gpio-exar.c
··· 217 217 if (ret) 218 218 return ret; 219 219 220 - platform_set_drvdata(pdev, exar_gpio); 221 - 222 220 return 0; 223 221 } 224 222