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

gpio: vx855: 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: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Andrei Coardos and committed by
Bartosz Golaszewski
872982ce 0a5e9306

-2
-2
drivers/gpio/gpio-vx855.c
··· 240 240 if (!vg) 241 241 return -ENOMEM; 242 242 243 - platform_set_drvdata(pdev, vg); 244 - 245 243 dev_info(&pdev->dev, "found VX855 GPIO controller\n"); 246 244 vg->io_gpi = res_gpi->start; 247 245 vg->io_gpo = res_gpo->start;