Commit d72ac4bb authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Sam Ravnborg

drm/panel: simple: Make panel_simple_remove() return void

panel_simple_remove() returns zero unconditionally. Make it return no value
instead making more obvious what happens in the callers.

This is a preparation for making platform and mipi-dsi remove callbacks
return void.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220708094922.1408248-2-u.kleine-koenig@pengutronix.de
parent 7d120273
...@@ -696,7 +696,7 @@ static int panel_simple_probe(struct device *dev, const struct panel_desc *desc) ...@@ -696,7 +696,7 @@ static int panel_simple_probe(struct device *dev, const struct panel_desc *desc)
return err; return err;
} }
static int panel_simple_remove(struct device *dev) static void panel_simple_remove(struct device *dev)
{ {
struct panel_simple *panel = dev_get_drvdata(dev); struct panel_simple *panel = dev_get_drvdata(dev);
...@@ -708,8 +708,6 @@ static int panel_simple_remove(struct device *dev) ...@@ -708,8 +708,6 @@ static int panel_simple_remove(struct device *dev)
pm_runtime_disable(dev); pm_runtime_disable(dev);
if (panel->ddc) if (panel->ddc)
put_device(&panel->ddc->dev); put_device(&panel->ddc->dev);
return 0;
} }
static void panel_simple_shutdown(struct device *dev) static void panel_simple_shutdown(struct device *dev)
...@@ -4273,7 +4271,9 @@ static int panel_simple_platform_probe(struct platform_device *pdev) ...@@ -4273,7 +4271,9 @@ static int panel_simple_platform_probe(struct platform_device *pdev)
static int panel_simple_platform_remove(struct platform_device *pdev) static int panel_simple_platform_remove(struct platform_device *pdev)
{ {
return panel_simple_remove(&pdev->dev); panel_simple_remove(&pdev->dev);
return 0;
} }
static void panel_simple_platform_shutdown(struct platform_device *pdev) static void panel_simple_platform_shutdown(struct platform_device *pdev)
...@@ -4574,7 +4574,9 @@ static int panel_simple_dsi_remove(struct mipi_dsi_device *dsi) ...@@ -4574,7 +4574,9 @@ static int panel_simple_dsi_remove(struct mipi_dsi_device *dsi)
if (err < 0) if (err < 0)
dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", err); dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", err);
return panel_simple_remove(&dsi->dev); panel_simple_remove(&dsi->dev);
return 0;
} }
static void panel_simple_dsi_shutdown(struct mipi_dsi_device *dsi) static void panel_simple_dsi_shutdown(struct mipi_dsi_device *dsi)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment