summaryrefslogtreecommitdiff
path: root/drivers/i3c/master/mipi-i3c-hci/core.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-03-19 02:33:07 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2023-03-21 21:25:25 +0300
commit0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7 (patch)
treee563d7c30a8216cd27189069ab28519a505e179c /drivers/i3c/master/mipi-i3c-hci/core.c
parent1dae3f1df7005e27a0040855ce8b3c21c262e3b2 (diff)
downloadlinux-0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7.tar.xz
i3c: Make i3c_master_unregister() return void
The function returned zero unconditionally. Switch the return type to void and simplify the callers accordingly. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/r/20230318233311.265186-2-u.kleine-koenig@pengutronix.de Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/i3c/master/mipi-i3c-hci/core.c')
-rw-r--r--drivers/i3c/master/mipi-i3c-hci/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/i3c/master/mipi-i3c-hci/core.c b/drivers/i3c/master/mipi-i3c-hci/core.c
index 6aef5ce43cc1..f9bc58366a72 100644
--- a/drivers/i3c/master/mipi-i3c-hci/core.c
+++ b/drivers/i3c/master/mipi-i3c-hci/core.c
@@ -769,7 +769,9 @@ static int i3c_hci_remove(struct platform_device *pdev)
{
struct i3c_hci *hci = platform_get_drvdata(pdev);
- return i3c_master_unregister(&hci->master);
+ i3c_master_unregister(&hci->master);
+
+ return 0;
}
static const __maybe_unused struct of_device_id i3c_hci_of_match[] = {