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

reset: meson: 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>
Link: https://lore.kernel.org/r/20230807105400.11560-1-aboutphysycs@gmail.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

authored by

Andrei Coardos and committed by
Philipp Zabel
1b5adb40 fdc670ac

-2
-2
drivers/reset/reset-meson.c
··· 128 128 if (!data->param) 129 129 return -ENODEV; 130 130 131 - platform_set_drvdata(pdev, data); 132 - 133 131 spin_lock_init(&data->lock); 134 132 135 133 data->rcdev.owner = THIS_MODULE;