diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-06-19 11:26:55 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2022-07-19 12:54:40 +0300 |
commit | c55333064d6ea9a26c7e8cfbe2ba1fa77c3a8e48 (patch) | |
tree | 4e1b13e61346b5ac4c0533f48f45f388dd210ceb /drivers/mfd | |
parent | 99a7ec2f362261be1ccca702da099f39127a3388 (diff) | |
download | linux-c55333064d6ea9a26c7e8cfbe2ba1fa77c3a8e48.tar.xz |
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 |