aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorUwe Kleine-König2024-03-10 09:06:07 +0100
committerWilliam Breathitt Gray2024-04-02 13:10:35 -0400
commit4b986b68e6993c512106548ed712aebe40d3605e (patch)
tree32d7fa6015cdbe33ac33e9fe3bdd8b6af4ed4a26 /block
parente9b4895fd171dfa961c570d31ef61f443b210ab1 (diff)
counter: ti-eqep: 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. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: David Lechner <david@lechnology.com> Link: https://lore.kernel.org/r/bf78595f6a49be0b6bb403b466c13177d72c02b7.1710057753.git.u.kleine-koenig@pengutronix.de Signed-off-by: William Breathitt Gray <wbg@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions