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:07:02 +0200
committerSuzuki K Poulose <suzuki.poulose@arm.com>2024-04-25 10:07:16 +0100
commitba8c06fe7e16ddfd44ece7fabd9af2dc2e6d49e7 (patch)
tree3247603f5b0b32c145c2d35fca0bb65959f21c79 /drivers/hwtracing/coresight/coresight-tmc-core.c
parent38a38da447579f683114edb1c8254491b4176853 (diff)
downloadlinux-ba8c06fe7e16ddfd44ece7fabd9af2dc2e6d49e7.tar.gz
linux-ba8c06fe7e16ddfd44ece7fabd9af2dc2e6d49e7.tar.bz2
linux-ba8c06fe7e16ddfd44ece7fabd9af2dc2e6d49e7.zip
coresight: tpiu: 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: 3d83d4d4904a ("coresight: tpiu: 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/ad5e0d3ec081444a5ad04a7be277dde3afcb696b.1713858615.git.u.kleine-koenig@pengutronix.de
Diffstat (limited to 'drivers/hwtracing/coresight/coresight-tmc-core.c')
0 files changed, 0 insertions, 0 deletions