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

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

authored by

Andrei Coardos and committed by
Philipp Zabel
5eddff6a 38d09b98

-2
-2
drivers/reset/reset-ath79.c
··· 93 93 if (!ath79_reset) 94 94 return -ENOMEM; 95 95 96 - platform_set_drvdata(pdev, ath79_reset); 97 - 98 96 ath79_reset->base = devm_platform_ioremap_resource(pdev, 0); 99 97 if (IS_ERR(ath79_reset->base)) 100 98 return PTR_ERR(ath79_reset->base);