diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-06-19 10:26:55 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2022-07-19 11:54:40 +0200 |
commit | c55333064d6ea9a26c7e8cfbe2ba1fa77c3a8e48 (patch) | |
tree | 4e1b13e61346b5ac4c0533f48f45f388dd210ceb /drivers/mfd | |
parent | mfd: dln2: Automatically detect and fill endpoint pointers (diff) | |
download | linux-c55333064d6ea9a26c7e8cfbe2ba1fa77c3a8e48.tar.xz linux-c55333064d6ea9a26c7e8cfbe2ba1fa77c3a8e48.zip |
mfd: tc6393xb: Make disable callback return void
All implementations return 0, so simplify accordingly.
This is a preparation for making platform remove callbacks return void.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220619082655.53728-1-u.kleine-koenig@pengutronix.de
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/tc6393xb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c index 0be5731685b4..aa903a31dd43 100644 --- a/drivers/mfd/tc6393xb.c +++ b/drivers/mfd/tc6393xb.c @@ -798,20 +798,19 @@ static int tc6393xb_remove(struct platform_device *dev) { struct tc6393xb_platform_data *tcpd = dev_get_platdata(&dev->dev); struct tc6393xb *tc6393xb = platform_get_drvdata(dev); - int ret; mfd_remove_devices(&dev->dev); tc6393xb_detach_irq(dev); - ret = tcpd->disable(dev); + tcpd->disable(dev); clk_disable_unprepare(tc6393xb->clk); iounmap(tc6393xb->scr); release_resource(&tc6393xb->rscr); clk_put(tc6393xb->clk); kfree(tc6393xb); - return ret; + return 0; } #ifdef CONFIG_PM |