summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/windfarm_smu_controls.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-03-21 09:41:21 +0100
committerJoerg Roedel <jroedel@suse.de>2023-03-31 10:01:57 +0200
commit816a4afce133e75f5977bbf0f4c24c02280b1a99 (patch)
treedefdff641807ceadee8817e1abf65b2a92752702 /drivers/macintosh/windfarm_smu_controls.c
parentiommu/ipmmu-vmsa: Convert to platform remove callback returning void (diff)
downloadlinux-816a4afce133e75f5977bbf0f4c24c02280b1a99.tar.xz
linux-816a4afce133e75f5977bbf0f4c24c02280b1a99.zip
iommu/msm: Convert to platform remove callback returning void
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to make the remove callback return void. In the first step of this quest all drivers are converted to .remove_new() which already returns void. Trivially convert this driver from always returning zero in the remove callback to the void returning variant. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20230321084125.337021-7-u.kleine-koenig@pengutronix.de Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/macintosh/windfarm_smu_controls.c')
0 files changed, 0 insertions, 0 deletions