gpio: sifive: remove unneeded call to platform_set_drvdata()
authorAndrei Coardos <aboutphysycs@gmail.com>
Mon, 13 Nov 2023 02:34:32 +0000 (18:34 -0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 15 Nov 2023 14:39:40 +0000 (15:39 +0100)
commit66d6143ebff038a69d875e582e536bae02b14290
treeee2f0283e29a17680db3c1ca06440c9adc78e937
parentb85ea95d086471afb4ad062012a4d73cd328fa86
gpio: sifive: 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@kernel.org>
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-sifive.c