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

reset: uniphier-glue: 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.

Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>
Reviewed-by: Alexandru Ardelean <alex@shruggie.ro>
Link: https://lore.kernel.org/r/20230807112705.12862-1-aboutphysycs@gmail.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

authored by

Andrei Coardos and committed by
Philipp Zabel
38f190f9 00e1b442

-2
-2
drivers/reset/reset-uniphier-glue.c
··· 99 99 priv->rdata.rcdev.of_node = dev->of_node; 100 100 priv->rdata.active_low = true; 101 101 102 - platform_set_drvdata(pdev, priv); 103 - 104 102 return devm_reset_controller_register(dev, &priv->rdata.rcdev); 105 103 } 106 104