summaryrefslogtreecommitdiff
path: root/drivers/hwtracing/coresight/coresight-tmc-core.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2024-04-23 10:06:59 +0200
committerSuzuki K Poulose <suzuki.poulose@arm.com>2024-04-25 10:07:16 +0100
commit971c2b107b5742ef1dfa3a405cd5ee7033502d60 (patch)
tree061be685f2c984d382d22160586f1fc8432f19ad /drivers/hwtracing/coresight/coresight-tmc-core.c
parentc01cb419104c4187f2a148f72a7dcc67e77801a5 (diff)
downloadlinux-971c2b107b5742ef1dfa3a405cd5ee7033502d60.tar.gz
linux-971c2b107b5742ef1dfa3a405cd5ee7033502d60.tar.bz2
linux-971c2b107b5742ef1dfa3a405cd5ee7033502d60.zip
coresight: debug: 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 ignored (apart from emitting a warning) 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. Eventually after all drivers are converted, .remove_new() will be renamed to .remove(). Trivially convert this driver from always returning zero in the remove callback to the void returning variant. Fixes: 965edae4e6a2 ("coresight: debug: Move ACPI support from AMBA driver to platform driver") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Link: https://lore.kernel.org/r/fb3d7db82a2490ace41c51b16ad17ef61549e2f6.1713858615.git.u.kleine-koenig@pengutronix.de
Diffstat (limited to 'drivers/hwtracing/coresight/coresight-tmc-core.c')
0 files changed, 0 insertions, 0 deletions