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

reset: lpc18xx: 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/20230807104549.11225-1-aboutphysycs@gmail.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

authored by

Andrei Coardos and committed by
Philipp Zabel
fdc670ac 41bbf704

-2
-2
drivers/reset/reset-lpc18xx.c
··· 188 188 rc->rcdev.ops = &lpc18xx_rgu_ops; 189 189 rc->rcdev.of_node = pdev->dev.of_node; 190 190 191 - platform_set_drvdata(pdev, rc); 192 - 193 191 ret = reset_controller_register(&rc->rcdev); 194 192 if (ret) { 195 193 dev_err(&pdev->dev, "unable to register device\n");