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

drm/mipi-dsi: Make remove callback return void

All implementations return 0 and the return value of mipi_dsi_drv_remove()
is ignored anyhow.

So change the prototype of the remove function to return no value. This
way driver authors are not tempted to assume that passing an error to
the upper layer is a good idea. All drivers are adapted accordingly.
There is no intended change of behaviour.
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-4-u.kleine-koenig@pengutronix.de
parent 1fd452c4
...@@ -735,14 +735,12 @@ static int chipone_i2c_probe(struct i2c_client *client, ...@@ -735,14 +735,12 @@ static int chipone_i2c_probe(struct i2c_client *client,
return chipone_dsi_host_attach(icn); return chipone_dsi_host_attach(icn);
} }
static int chipone_dsi_remove(struct mipi_dsi_device *dsi) static void chipone_dsi_remove(struct mipi_dsi_device *dsi)
{ {
struct chipone *icn = mipi_dsi_get_drvdata(dsi); struct chipone *icn = mipi_dsi_get_drvdata(dsi);
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
drm_bridge_remove(&icn->bridge); drm_bridge_remove(&icn->bridge);
return 0;
} }
static const struct of_device_id chipone_of_match[] = { static const struct of_device_id chipone_of_match[] = {
......
...@@ -241,14 +241,12 @@ static int tc358762_probe(struct mipi_dsi_device *dsi) ...@@ -241,14 +241,12 @@ static int tc358762_probe(struct mipi_dsi_device *dsi)
return ret; return ret;
} }
static int tc358762_remove(struct mipi_dsi_device *dsi) static void tc358762_remove(struct mipi_dsi_device *dsi)
{ {
struct tc358762 *ctx = mipi_dsi_get_drvdata(dsi); struct tc358762 *ctx = mipi_dsi_get_drvdata(dsi);
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
drm_bridge_remove(&ctx->bridge); drm_bridge_remove(&ctx->bridge);
return 0;
} }
static const struct of_device_id tc358762_of_match[] = { static const struct of_device_id tc358762_of_match[] = {
......
...@@ -381,14 +381,12 @@ static int tc358764_probe(struct mipi_dsi_device *dsi) ...@@ -381,14 +381,12 @@ static int tc358764_probe(struct mipi_dsi_device *dsi)
return ret; return ret;
} }
static int tc358764_remove(struct mipi_dsi_device *dsi) static void tc358764_remove(struct mipi_dsi_device *dsi)
{ {
struct tc358764 *ctx = mipi_dsi_get_drvdata(dsi); struct tc358764 *ctx = mipi_dsi_get_drvdata(dsi);
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
drm_bridge_remove(&ctx->bridge); drm_bridge_remove(&ctx->bridge);
return 0;
} }
static const struct of_device_id tc358764_of_match[] = { static const struct of_device_id tc358764_of_match[] = {
......
...@@ -1236,7 +1236,9 @@ static int mipi_dsi_drv_remove(struct device *dev) ...@@ -1236,7 +1236,9 @@ static int mipi_dsi_drv_remove(struct device *dev)
struct mipi_dsi_driver *drv = to_mipi_dsi_driver(dev->driver); struct mipi_dsi_driver *drv = to_mipi_dsi_driver(dev->driver);
struct mipi_dsi_device *dsi = to_mipi_dsi_device(dev); struct mipi_dsi_device *dsi = to_mipi_dsi_device(dev);
return drv->remove(dsi); drv->remove(dsi);
return 0;
} }
static void mipi_dsi_drv_shutdown(struct device *dev) static void mipi_dsi_drv_shutdown(struct device *dev)
......
...@@ -321,7 +321,7 @@ static int tm5p5_nt35596_probe(struct mipi_dsi_device *dsi) ...@@ -321,7 +321,7 @@ static int tm5p5_nt35596_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int tm5p5_nt35596_remove(struct mipi_dsi_device *dsi) static void tm5p5_nt35596_remove(struct mipi_dsi_device *dsi)
{ {
struct tm5p5_nt35596 *ctx = mipi_dsi_get_drvdata(dsi); struct tm5p5_nt35596 *ctx = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -332,8 +332,6 @@ static int tm5p5_nt35596_remove(struct mipi_dsi_device *dsi) ...@@ -332,8 +332,6 @@ static int tm5p5_nt35596_remove(struct mipi_dsi_device *dsi)
"Failed to detach from DSI host: %d\n", ret); "Failed to detach from DSI host: %d\n", ret);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id tm5p5_nt35596_of_match[] = { static const struct of_device_id tm5p5_nt35596_of_match[] = {
......
...@@ -410,7 +410,7 @@ static int boe_bf060y8m_aj0_probe(struct mipi_dsi_device *dsi) ...@@ -410,7 +410,7 @@ static int boe_bf060y8m_aj0_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int boe_bf060y8m_aj0_remove(struct mipi_dsi_device *dsi) static void boe_bf060y8m_aj0_remove(struct mipi_dsi_device *dsi)
{ {
struct boe_bf060y8m_aj0 *boe = mipi_dsi_get_drvdata(dsi); struct boe_bf060y8m_aj0 *boe = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -420,8 +420,6 @@ static int boe_bf060y8m_aj0_remove(struct mipi_dsi_device *dsi) ...@@ -420,8 +420,6 @@ static int boe_bf060y8m_aj0_remove(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret);
drm_panel_remove(&boe->panel); drm_panel_remove(&boe->panel);
return 0;
} }
static const struct of_device_id boe_bf060y8m_aj0_of_match[] = { static const struct of_device_id boe_bf060y8m_aj0_of_match[] = {
......
...@@ -919,7 +919,7 @@ static int panel_probe(struct mipi_dsi_device *dsi) ...@@ -919,7 +919,7 @@ static int panel_probe(struct mipi_dsi_device *dsi)
return err; return err;
} }
static int panel_remove(struct mipi_dsi_device *dsi) static void panel_remove(struct mipi_dsi_device *dsi)
{ {
struct panel_info *pinfo = mipi_dsi_get_drvdata(dsi); struct panel_info *pinfo = mipi_dsi_get_drvdata(dsi);
int err; int err;
...@@ -937,8 +937,6 @@ static int panel_remove(struct mipi_dsi_device *dsi) ...@@ -937,8 +937,6 @@ static int panel_remove(struct mipi_dsi_device *dsi)
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);
drm_panel_remove(&pinfo->base); drm_panel_remove(&pinfo->base);
return 0;
} }
static void panel_shutdown(struct mipi_dsi_device *dsi) static void panel_shutdown(struct mipi_dsi_device *dsi)
......
...@@ -1622,7 +1622,7 @@ static void boe_panel_shutdown(struct mipi_dsi_device *dsi) ...@@ -1622,7 +1622,7 @@ static void boe_panel_shutdown(struct mipi_dsi_device *dsi)
drm_panel_unprepare(&boe->base); drm_panel_unprepare(&boe->base);
} }
static int boe_panel_remove(struct mipi_dsi_device *dsi) static void boe_panel_remove(struct mipi_dsi_device *dsi)
{ {
struct boe_panel *boe = mipi_dsi_get_drvdata(dsi); struct boe_panel *boe = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -1635,8 +1635,6 @@ static int boe_panel_remove(struct mipi_dsi_device *dsi) ...@@ -1635,8 +1635,6 @@ static int boe_panel_remove(struct mipi_dsi_device *dsi)
if (boe->base.dev) if (boe->base.dev)
drm_panel_remove(&boe->base); drm_panel_remove(&boe->base);
return 0;
} }
static const struct of_device_id boe_of_match[] = { static const struct of_device_id boe_of_match[] = {
......
...@@ -579,7 +579,7 @@ static int dsicm_probe(struct mipi_dsi_device *dsi) ...@@ -579,7 +579,7 @@ static int dsicm_probe(struct mipi_dsi_device *dsi)
return r; return r;
} }
static int dsicm_remove(struct mipi_dsi_device *dsi) static void dsicm_remove(struct mipi_dsi_device *dsi)
{ {
struct panel_drv_data *ddata = mipi_dsi_get_drvdata(dsi); struct panel_drv_data *ddata = mipi_dsi_get_drvdata(dsi);
...@@ -593,8 +593,6 @@ static int dsicm_remove(struct mipi_dsi_device *dsi) ...@@ -593,8 +593,6 @@ static int dsicm_remove(struct mipi_dsi_device *dsi)
if (ddata->extbldev) if (ddata->extbldev)
put_device(&ddata->extbldev->dev); put_device(&ddata->extbldev->dev);
return 0;
} }
static const struct dsic_panel_data taal_data = { static const struct dsic_panel_data taal_data = {
......
...@@ -250,7 +250,7 @@ static int ebbg_ft8719_probe(struct mipi_dsi_device *dsi) ...@@ -250,7 +250,7 @@ static int ebbg_ft8719_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int ebbg_ft8719_remove(struct mipi_dsi_device *dsi) static void ebbg_ft8719_remove(struct mipi_dsi_device *dsi)
{ {
struct ebbg_ft8719 *ctx = mipi_dsi_get_drvdata(dsi); struct ebbg_ft8719 *ctx = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -260,8 +260,6 @@ static int ebbg_ft8719_remove(struct mipi_dsi_device *dsi) ...@@ -260,8 +260,6 @@ static int ebbg_ft8719_remove(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id ebbg_ft8719_of_match[] = { static const struct of_device_id ebbg_ft8719_of_match[] = {
......
...@@ -321,7 +321,7 @@ static void kd35t133_shutdown(struct mipi_dsi_device *dsi) ...@@ -321,7 +321,7 @@ static void kd35t133_shutdown(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "Failed to disable panel: %d\n", ret); dev_err(&dsi->dev, "Failed to disable panel: %d\n", ret);
} }
static int kd35t133_remove(struct mipi_dsi_device *dsi) static void kd35t133_remove(struct mipi_dsi_device *dsi)
{ {
struct kd35t133 *ctx = mipi_dsi_get_drvdata(dsi); struct kd35t133 *ctx = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -333,8 +333,6 @@ static int kd35t133_remove(struct mipi_dsi_device *dsi) ...@@ -333,8 +333,6 @@ static int kd35t133_remove(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id kd35t133_of_match[] = { static const struct of_device_id kd35t133_of_match[] = {
......
...@@ -486,14 +486,12 @@ static int k101_im2ba02_dsi_probe(struct mipi_dsi_device *dsi) ...@@ -486,14 +486,12 @@ static int k101_im2ba02_dsi_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int k101_im2ba02_dsi_remove(struct mipi_dsi_device *dsi) static void k101_im2ba02_dsi_remove(struct mipi_dsi_device *dsi)
{ {
struct k101_im2ba02 *ctx = mipi_dsi_get_drvdata(dsi); struct k101_im2ba02 *ctx = mipi_dsi_get_drvdata(dsi);
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id k101_im2ba02_of_match[] = { static const struct of_device_id k101_im2ba02_of_match[] = {
......
...@@ -233,14 +233,12 @@ static int feiyang_dsi_probe(struct mipi_dsi_device *dsi) ...@@ -233,14 +233,12 @@ static int feiyang_dsi_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int feiyang_dsi_remove(struct mipi_dsi_device *dsi) static void feiyang_dsi_remove(struct mipi_dsi_device *dsi)
{ {
struct feiyang *ctx = mipi_dsi_get_drvdata(dsi); struct feiyang *ctx = mipi_dsi_get_drvdata(dsi);
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id feiyang_of_match[] = { static const struct of_device_id feiyang_of_match[] = {
......
...@@ -923,14 +923,12 @@ static int ili9881c_dsi_probe(struct mipi_dsi_device *dsi) ...@@ -923,14 +923,12 @@ static int ili9881c_dsi_probe(struct mipi_dsi_device *dsi)
return mipi_dsi_attach(dsi); return mipi_dsi_attach(dsi);
} }
static int ili9881c_dsi_remove(struct mipi_dsi_device *dsi) static void ili9881c_dsi_remove(struct mipi_dsi_device *dsi)
{ {
struct ili9881c *ctx = mipi_dsi_get_drvdata(dsi); struct ili9881c *ctx = mipi_dsi_get_drvdata(dsi);
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct ili9881c_desc lhr050h41_desc = { static const struct ili9881c_desc lhr050h41_desc = {
......
...@@ -506,7 +506,7 @@ static int innolux_panel_probe(struct mipi_dsi_device *dsi) ...@@ -506,7 +506,7 @@ static int innolux_panel_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int innolux_panel_remove(struct mipi_dsi_device *dsi) static void innolux_panel_remove(struct mipi_dsi_device *dsi)
{ {
struct innolux_panel *innolux = mipi_dsi_get_drvdata(dsi); struct innolux_panel *innolux = mipi_dsi_get_drvdata(dsi);
int err; int err;
...@@ -524,8 +524,6 @@ static int innolux_panel_remove(struct mipi_dsi_device *dsi) ...@@ -524,8 +524,6 @@ static int innolux_panel_remove(struct mipi_dsi_device *dsi)
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);
innolux_panel_del(innolux); innolux_panel_del(innolux);
return 0;
} }
static void innolux_panel_shutdown(struct mipi_dsi_device *dsi) static void innolux_panel_shutdown(struct mipi_dsi_device *dsi)
......
...@@ -288,7 +288,7 @@ static int jdi_fhd_r63452_probe(struct mipi_dsi_device *dsi) ...@@ -288,7 +288,7 @@ static int jdi_fhd_r63452_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int jdi_fhd_r63452_remove(struct mipi_dsi_device *dsi) static void jdi_fhd_r63452_remove(struct mipi_dsi_device *dsi)
{ {
struct jdi_fhd_r63452 *ctx = mipi_dsi_get_drvdata(dsi); struct jdi_fhd_r63452 *ctx = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -298,8 +298,6 @@ static int jdi_fhd_r63452_remove(struct mipi_dsi_device *dsi) ...@@ -298,8 +298,6 @@ static int jdi_fhd_r63452_remove(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id jdi_fhd_r63452_of_match[] = { static const struct of_device_id jdi_fhd_r63452_of_match[] = {
......
...@@ -482,7 +482,7 @@ static int jdi_panel_probe(struct mipi_dsi_device *dsi) ...@@ -482,7 +482,7 @@ static int jdi_panel_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int jdi_panel_remove(struct mipi_dsi_device *dsi) static void jdi_panel_remove(struct mipi_dsi_device *dsi)
{ {
struct jdi_panel *jdi = mipi_dsi_get_drvdata(dsi); struct jdi_panel *jdi = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -497,8 +497,6 @@ static int jdi_panel_remove(struct mipi_dsi_device *dsi) ...@@ -497,8 +497,6 @@ static int jdi_panel_remove(struct mipi_dsi_device *dsi)
ret); ret);
jdi_panel_del(jdi); jdi_panel_del(jdi);
return 0;
} }
static void jdi_panel_shutdown(struct mipi_dsi_device *dsi) static void jdi_panel_shutdown(struct mipi_dsi_device *dsi)
......
...@@ -830,7 +830,7 @@ static int khadas_ts050_panel_probe(struct mipi_dsi_device *dsi) ...@@ -830,7 +830,7 @@ static int khadas_ts050_panel_probe(struct mipi_dsi_device *dsi)
return err; return err;
} }
static int khadas_ts050_panel_remove(struct mipi_dsi_device *dsi) static void khadas_ts050_panel_remove(struct mipi_dsi_device *dsi)
{ {
struct khadas_ts050_panel *khadas_ts050 = mipi_dsi_get_drvdata(dsi); struct khadas_ts050_panel *khadas_ts050 = mipi_dsi_get_drvdata(dsi);
int err; int err;
...@@ -842,8 +842,6 @@ static int khadas_ts050_panel_remove(struct mipi_dsi_device *dsi) ...@@ -842,8 +842,6 @@ static int khadas_ts050_panel_remove(struct mipi_dsi_device *dsi)
drm_panel_remove(&khadas_ts050->base); drm_panel_remove(&khadas_ts050->base);
drm_panel_disable(&khadas_ts050->base); drm_panel_disable(&khadas_ts050->base);
drm_panel_unprepare(&khadas_ts050->base); drm_panel_unprepare(&khadas_ts050->base);
return 0;
} }
static void khadas_ts050_panel_shutdown(struct mipi_dsi_device *dsi) static void khadas_ts050_panel_shutdown(struct mipi_dsi_device *dsi)
......
...@@ -415,7 +415,7 @@ static int kingdisplay_panel_probe(struct mipi_dsi_device *dsi) ...@@ -415,7 +415,7 @@ static int kingdisplay_panel_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int kingdisplay_panel_remove(struct mipi_dsi_device *dsi) static void kingdisplay_panel_remove(struct mipi_dsi_device *dsi)
{ {
struct kingdisplay_panel *kingdisplay = mipi_dsi_get_drvdata(dsi); struct kingdisplay_panel *kingdisplay = mipi_dsi_get_drvdata(dsi);
int err; int err;
...@@ -433,8 +433,6 @@ static int kingdisplay_panel_remove(struct mipi_dsi_device *dsi) ...@@ -433,8 +433,6 @@ static int kingdisplay_panel_remove(struct mipi_dsi_device *dsi)
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);
kingdisplay_panel_del(kingdisplay); kingdisplay_panel_del(kingdisplay);
return 0;
} }
static void kingdisplay_panel_shutdown(struct mipi_dsi_device *dsi) static void kingdisplay_panel_shutdown(struct mipi_dsi_device *dsi)
......
...@@ -628,7 +628,7 @@ static void ltk050h3146w_shutdown(struct mipi_dsi_device *dsi) ...@@ -628,7 +628,7 @@ static void ltk050h3146w_shutdown(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "Failed to disable panel: %d\n", ret); dev_err(&dsi->dev, "Failed to disable panel: %d\n", ret);
} }
static int ltk050h3146w_remove(struct mipi_dsi_device *dsi) static void ltk050h3146w_remove(struct mipi_dsi_device *dsi)
{ {
struct ltk050h3146w *ctx = mipi_dsi_get_drvdata(dsi); struct ltk050h3146w *ctx = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -640,8 +640,6 @@ static int ltk050h3146w_remove(struct mipi_dsi_device *dsi) ...@@ -640,8 +640,6 @@ static int ltk050h3146w_remove(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id ltk050h3146w_of_match[] = { static const struct of_device_id ltk050h3146w_of_match[] = {
......
...@@ -477,7 +477,7 @@ static void ltk500hd1829_shutdown(struct mipi_dsi_device *dsi) ...@@ -477,7 +477,7 @@ static void ltk500hd1829_shutdown(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "Failed to disable panel: %d\n", ret); dev_err(&dsi->dev, "Failed to disable panel: %d\n", ret);
} }
static int ltk500hd1829_remove(struct mipi_dsi_device *dsi) static void ltk500hd1829_remove(struct mipi_dsi_device *dsi)
{ {
struct ltk500hd1829 *ctx = mipi_dsi_get_drvdata(dsi); struct ltk500hd1829 *ctx = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -489,8 +489,6 @@ static int ltk500hd1829_remove(struct mipi_dsi_device *dsi) ...@@ -489,8 +489,6 @@ static int ltk500hd1829_remove(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", ret); dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", ret);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id ltk500hd1829_of_match[] = { static const struct of_device_id ltk500hd1829_of_match[] = {
......
...@@ -336,7 +336,7 @@ static void mantix_shutdown(struct mipi_dsi_device *dsi) ...@@ -336,7 +336,7 @@ static void mantix_shutdown(struct mipi_dsi_device *dsi)
drm_panel_disable(&ctx->panel); drm_panel_disable(&ctx->panel);
} }
static int mantix_remove(struct mipi_dsi_device *dsi) static void mantix_remove(struct mipi_dsi_device *dsi)
{ {
struct mantix *ctx = mipi_dsi_get_drvdata(dsi); struct mantix *ctx = mipi_dsi_get_drvdata(dsi);
...@@ -344,8 +344,6 @@ static int mantix_remove(struct mipi_dsi_device *dsi) ...@@ -344,8 +344,6 @@ static int mantix_remove(struct mipi_dsi_device *dsi)
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id mantix_of_match[] = { static const struct of_device_id mantix_of_match[] = {
......
...@@ -966,7 +966,7 @@ static int nt35510_probe(struct mipi_dsi_device *dsi) ...@@ -966,7 +966,7 @@ static int nt35510_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int nt35510_remove(struct mipi_dsi_device *dsi) static void nt35510_remove(struct mipi_dsi_device *dsi)
{ {
struct nt35510 *nt = mipi_dsi_get_drvdata(dsi); struct nt35510 *nt = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -978,8 +978,6 @@ static int nt35510_remove(struct mipi_dsi_device *dsi) ...@@ -978,8 +978,6 @@ static int nt35510_remove(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "Failed to power off\n"); dev_err(&dsi->dev, "Failed to power off\n");
drm_panel_remove(&nt->panel); drm_panel_remove(&nt->panel);
return 0;
} }
/* /*
......
...@@ -523,14 +523,12 @@ static int nt35560_probe(struct mipi_dsi_device *dsi) ...@@ -523,14 +523,12 @@ static int nt35560_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int nt35560_remove(struct mipi_dsi_device *dsi) static void nt35560_remove(struct mipi_dsi_device *dsi)
{ {
struct nt35560 *nt = mipi_dsi_get_drvdata(dsi); struct nt35560 *nt = mipi_dsi_get_drvdata(dsi);
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
drm_panel_remove(&nt->panel); drm_panel_remove(&nt->panel);
return 0;
} }
static const struct of_device_id nt35560_of_match[] = { static const struct of_device_id nt35560_of_match[] = {
......
...@@ -620,7 +620,7 @@ static int nt35950_probe(struct mipi_dsi_device *dsi) ...@@ -620,7 +620,7 @@ static int nt35950_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int nt35950_remove(struct mipi_dsi_device *dsi) static void nt35950_remove(struct mipi_dsi_device *dsi)
{ {
struct nt35950 *nt = mipi_dsi_get_drvdata(dsi); struct nt35950 *nt = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -639,8 +639,6 @@ static int nt35950_remove(struct mipi_dsi_device *dsi) ...@@ -639,8 +639,6 @@ static int nt35950_remove(struct mipi_dsi_device *dsi)
} }
drm_panel_remove(&nt->panel); drm_panel_remove(&nt->panel);
return 0;
} }
static const struct nt35950_panel_mode sharp_ls055d1sx04_modes[] = { static const struct nt35950_panel_mode sharp_ls055d1sx04_modes[] = {
......
...@@ -669,7 +669,7 @@ static int nt36672a_panel_probe(struct mipi_dsi_device *dsi) ...@@ -669,7 +669,7 @@ static int nt36672a_panel_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int nt36672a_panel_remove(struct mipi_dsi_device *dsi) static void nt36672a_panel_remove(struct mipi_dsi_device *dsi)
{ {
struct nt36672a_panel *pinfo = mipi_dsi_get_drvdata(dsi); struct nt36672a_panel *pinfo = mipi_dsi_get_drvdata(dsi);
int err; int err;
...@@ -687,8 +687,6 @@ static int nt36672a_panel_remove(struct mipi_dsi_device *dsi) ...@@ -687,8 +687,6 @@ static int nt36672a_panel_remove(struct mipi_dsi_device *dsi)
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);
drm_panel_remove(&pinfo->base); drm_panel_remove(&pinfo->base);
return 0;
} }
static void nt36672a_panel_shutdown(struct mipi_dsi_device *dsi) static void nt36672a_panel_shutdown(struct mipi_dsi_device *dsi)
......
...@@ -497,14 +497,12 @@ static int otm8009a_probe(struct mipi_dsi_device *dsi) ...@@ -497,14 +497,12 @@ static int otm8009a_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int otm8009a_remove(struct mipi_dsi_device *dsi) static void otm8009a_remove(struct mipi_dsi_device *dsi)
{ {
struct otm8009a *ctx = mipi_dsi_get_drvdata(dsi); struct otm8009a *ctx = mipi_dsi_get_drvdata(dsi);
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id orisetech_otm8009a_of_match[] = { static const struct of_device_id orisetech_otm8009a_of_match[] = {
......
...@@ -206,7 +206,7 @@ static int osd101t2587_panel_probe(struct mipi_dsi_device *dsi) ...@@ -206,7 +206,7 @@ static int osd101t2587_panel_probe(struct mipi_dsi_device *dsi)
return ret; return ret;
} }
static int osd101t2587_panel_remove(struct mipi_dsi_device *dsi) static void osd101t2587_panel_remove(struct mipi_dsi_device *dsi)
{ {
struct osd101t2587_panel *osd101t2587 = mipi_dsi_get_drvdata(dsi); struct osd101t2587_panel *osd101t2587 = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -221,8 +221,6 @@ static int osd101t2587_panel_remove(struct mipi_dsi_device *dsi) ...@@ -221,8 +221,6 @@ static int osd101t2587_panel_remove(struct mipi_dsi_device *dsi)
ret = mipi_dsi_detach(dsi); ret = mipi_dsi_detach(dsi);
if (ret < 0) if (ret < 0)
dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", ret); dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", ret);
return ret;
} }
static void osd101t2587_panel_shutdown(struct mipi_dsi_device *dsi) static void osd101t2587_panel_shutdown(struct mipi_dsi_device *dsi)
......
...@@ -250,7 +250,7 @@ static int wuxga_nt_panel_probe(struct mipi_dsi_device *dsi) ...@@ -250,7 +250,7 @@ static int wuxga_nt_panel_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int wuxga_nt_panel_remove(struct mipi_dsi_device *dsi) static void wuxga_nt_panel_remove(struct mipi_dsi_device *dsi)
{ {
struct wuxga_nt_panel *wuxga_nt = mipi_dsi_get_drvdata(dsi); struct wuxga_nt_panel *wuxga_nt = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -264,8 +264,6 @@ static int wuxga_nt_panel_remove(struct mipi_dsi_device *dsi) ...@@ -264,8 +264,6 @@ static int wuxga_nt_panel_remove(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", ret); dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", ret);
wuxga_nt_panel_del(wuxga_nt); wuxga_nt_panel_del(wuxga_nt);
return 0;
} }
static void wuxga_nt_panel_shutdown(struct mipi_dsi_device *dsi) static void wuxga_nt_panel_shutdown(struct mipi_dsi_device *dsi)
......
...@@ -616,7 +616,7 @@ static int rad_panel_probe(struct mipi_dsi_device *dsi) ...@@ -616,7 +616,7 @@ static int rad_panel_probe(struct mipi_dsi_device *dsi)
return ret; return ret;
} }
static int rad_panel_remove(struct mipi_dsi_device *dsi) static void rad_panel_remove(struct mipi_dsi_device *dsi)
{ {
struct rad_panel *rad = mipi_dsi_get_drvdata(dsi); struct rad_panel *rad = mipi_dsi_get_drvdata(dsi);
struct device *dev = &dsi->dev; struct device *dev = &dsi->dev;
...@@ -627,8 +627,6 @@ static int rad_panel_remove(struct mipi_dsi_device *dsi) ...@@ -627,8 +627,6 @@ static int rad_panel_remove(struct mipi_dsi_device *dsi)
dev_err(dev, "Failed to detach from host (%d)\n", ret); dev_err(dev, "Failed to detach from host (%d)\n", ret);
drm_panel_remove(&rad->panel); drm_panel_remove(&rad->panel);
return 0;
} }
static void rad_panel_shutdown(struct mipi_dsi_device *dsi) static void rad_panel_shutdown(struct mipi_dsi_device *dsi)
......
...@@ -412,14 +412,12 @@ static int rm68200_probe(struct mipi_dsi_device *dsi) ...@@ -412,14 +412,12 @@ static int rm68200_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int rm68200_remove(struct mipi_dsi_device *dsi) static void rm68200_remove(struct mipi_dsi_device *dsi)
{ {
struct rm68200 *ctx = mipi_dsi_get_drvdata(dsi); struct rm68200 *ctx = mipi_dsi_get_drvdata(dsi);
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id raydium_rm68200_of_match[] = { static const struct of_device_id raydium_rm68200_of_match[] = {
......
...@@ -208,14 +208,12 @@ static int rb070d30_panel_dsi_probe(struct mipi_dsi_device *dsi) ...@@ -208,14 +208,12 @@ static int rb070d30_panel_dsi_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int rb070d30_panel_dsi_remove(struct mipi_dsi_device *dsi) static void rb070d30_panel_dsi_remove(struct mipi_dsi_device *dsi)
{ {
struct rb070d30_panel *ctx = mipi_dsi_get_drvdata(dsi); struct rb070d30_panel *ctx = mipi_dsi_get_drvdata(dsi);
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id rb070d30_panel_of_match[] = { static const struct of_device_id rb070d30_panel_of_match[] = {
......
...@@ -212,14 +212,12 @@ static int s6d16d0_probe(struct mipi_dsi_device *dsi) ...@@ -212,14 +212,12 @@ static int s6d16d0_probe(struct mipi_dsi_device *dsi)
return ret; return ret;
} }
static int s6d16d0_remove(struct mipi_dsi_device *dsi) static void s6d16d0_remove(struct mipi_dsi_device *dsi)
{ {
struct s6d16d0 *s6 = mipi_dsi_get_drvdata(dsi); struct s6d16d0 *s6 = mipi_dsi_get_drvdata(dsi);
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
drm_panel_remove(&s6->panel); drm_panel_remove(&s6->panel);
return 0;
} }
static const struct of_device_id s6d16d0_of_match[] = { static const struct of_device_id s6d16d0_of_match[] = {
......
...@@ -747,15 +747,13 @@ static int s6e3ha2_probe(struct mipi_dsi_device *dsi) ...@@ -747,15 +747,13 @@ static int s6e3ha2_probe(struct mipi_dsi_device *dsi)
return ret; return ret;
} }
static int s6e3ha2_remove(struct mipi_dsi_device *dsi) static void s6e3ha2_remove(struct mipi_dsi_device *dsi)
{ {
struct s6e3ha2 *ctx = mipi_dsi_get_drvdata(dsi); struct s6e3ha2 *ctx = mipi_dsi_get_drvdata(dsi);
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
backlight_device_unregister(ctx->bl_dev); backlight_device_unregister(ctx->bl_dev);
return 0;
} }
static const struct of_device_id s6e3ha2_of_match[] = { static const struct of_device_id s6e3ha2_of_match[] = {
......
...@@ -488,7 +488,7 @@ static int s6e63j0x03_probe(struct mipi_dsi_device *dsi) ...@@ -488,7 +488,7 @@ static int s6e63j0x03_probe(struct mipi_dsi_device *dsi)
return ret; return ret;
} }
static int s6e63j0x03_remove(struct mipi_dsi_device *dsi) static void s6e63j0x03_remove(struct mipi_dsi_device *dsi)
{ {
struct s6e63j0x03 *ctx = mipi_dsi_get_drvdata(dsi); struct s6e63j0x03 *ctx = mipi_dsi_get_drvdata(dsi);
...@@ -496,8 +496,6 @@ static int s6e63j0x03_remove(struct mipi_dsi_device *dsi) ...@@ -496,8 +496,6 @@ static int s6e63j0x03_remove(struct mipi_dsi_device *dsi)
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
backlight_device_unregister(ctx->bl_dev); backlight_device_unregister(ctx->bl_dev);
return 0;
} }
static const struct of_device_id s6e63j0x03_of_match[] = { static const struct of_device_id s6e63j0x03_of_match[] = {
......
...@@ -113,11 +113,10 @@ static int s6e63m0_dsi_probe(struct mipi_dsi_device *dsi) ...@@ -113,11 +113,10 @@ static int s6e63m0_dsi_probe(struct mipi_dsi_device *dsi)
return ret; return ret;
} }
static int s6e63m0_dsi_remove(struct mipi_dsi_device *dsi) static void s6e63m0_dsi_remove(struct mipi_dsi_device *dsi)
{ {
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
s6e63m0_remove(&dsi->dev); s6e63m0_remove(&dsi->dev);
return 0;
} }
static const struct of_device_id s6e63m0_dsi_of_match[] = { static const struct of_device_id s6e63m0_dsi_of_match[] = {
......
...@@ -254,7 +254,7 @@ static int s6e88a0_ams452ef01_probe(struct mipi_dsi_device *dsi) ...@@ -254,7 +254,7 @@ static int s6e88a0_ams452ef01_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int s6e88a0_ams452ef01_remove(struct mipi_dsi_device *dsi) static void s6e88a0_ams452ef01_remove(struct mipi_dsi_device *dsi)
{ {
struct s6e88a0_ams452ef01 *ctx = mipi_dsi_get_drvdata(dsi); struct s6e88a0_ams452ef01 *ctx = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -264,8 +264,6 @@ static int s6e88a0_ams452ef01_remove(struct mipi_dsi_device *dsi) ...@@ -264,8 +264,6 @@ static int s6e88a0_ams452ef01_remove(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id s6e88a0_ams452ef01_of_match[] = { static const struct of_device_id s6e88a0_ams452ef01_of_match[] = {
......
...@@ -1028,14 +1028,12 @@ static int s6e8aa0_probe(struct mipi_dsi_device *dsi) ...@@ -1028,14 +1028,12 @@ static int s6e8aa0_probe(struct mipi_dsi_device *dsi)
return ret; return ret;
} }
static int s6e8aa0_remove(struct mipi_dsi_device *dsi) static void s6e8aa0_remove(struct mipi_dsi_device *dsi)
{ {
struct s6e8aa0 *ctx = mipi_dsi_get_drvdata(dsi); struct s6e8aa0 *ctx = mipi_dsi_get_drvdata(dsi);
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id s6e8aa0_of_match[] = { static const struct of_device_id s6e8aa0_of_match[] = {
......
...@@ -305,7 +305,7 @@ static int sofef00_panel_probe(struct mipi_dsi_device *dsi) ...@@ -305,7 +305,7 @@ static int sofef00_panel_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int sofef00_panel_remove(struct mipi_dsi_device *dsi) static void sofef00_panel_remove(struct mipi_dsi_device *dsi)
{ {
struct sofef00_panel *ctx = mipi_dsi_get_drvdata(dsi); struct sofef00_panel *ctx = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -315,8 +315,6 @@ static int sofef00_panel_remove(struct mipi_dsi_device *dsi) ...@@ -315,8 +315,6 @@ static int sofef00_panel_remove(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id sofef00_panel_of_match[] = { static const struct of_device_id sofef00_panel_of_match[] = {
......
...@@ -391,7 +391,7 @@ static int sharp_panel_probe(struct mipi_dsi_device *dsi) ...@@ -391,7 +391,7 @@ static int sharp_panel_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int sharp_panel_remove(struct mipi_dsi_device *dsi) static void sharp_panel_remove(struct mipi_dsi_device *dsi)
{ {
struct sharp_panel *sharp = mipi_dsi_get_drvdata(dsi); struct sharp_panel *sharp = mipi_dsi_get_drvdata(dsi);
int err; int err;
...@@ -399,7 +399,7 @@ static int sharp_panel_remove(struct mipi_dsi_device *dsi) ...@@ -399,7 +399,7 @@ static int sharp_panel_remove(struct mipi_dsi_device *dsi)
/* only detach from host for the DSI-LINK2 interface */ /* only detach from host for the DSI-LINK2 interface */
if (!sharp) { if (!sharp) {
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
return 0; return;
} }
err = drm_panel_disable(&sharp->base); err = drm_panel_disable(&sharp->base);
...@@ -411,8 +411,6 @@ static int sharp_panel_remove(struct mipi_dsi_device *dsi) ...@@ -411,8 +411,6 @@ static int sharp_panel_remove(struct mipi_dsi_device *dsi)
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);
sharp_panel_del(sharp); sharp_panel_del(sharp);
return 0;
} }
static void sharp_panel_shutdown(struct mipi_dsi_device *dsi) static void sharp_panel_shutdown(struct mipi_dsi_device *dsi)
......
...@@ -305,7 +305,7 @@ static int sharp_nt_panel_probe(struct mipi_dsi_device *dsi) ...@@ -305,7 +305,7 @@ static int sharp_nt_panel_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int sharp_nt_panel_remove(struct mipi_dsi_device *dsi) static void sharp_nt_panel_remove(struct mipi_dsi_device *dsi)
{ {
struct sharp_nt_panel *sharp_nt = mipi_dsi_get_drvdata(dsi); struct sharp_nt_panel *sharp_nt = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -319,8 +319,6 @@ static int sharp_nt_panel_remove(struct mipi_dsi_device *dsi) ...@@ -319,8 +319,6 @@ static int sharp_nt_panel_remove(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", ret); dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", ret);
sharp_nt_panel_del(sharp_nt); sharp_nt_panel_del(sharp_nt);
return 0;
} }
static void sharp_nt_panel_shutdown(struct mipi_dsi_device *dsi) static void sharp_nt_panel_shutdown(struct mipi_dsi_device *dsi)
......
...@@ -298,7 +298,7 @@ static int sharp_ls060_probe(struct mipi_dsi_device *dsi) ...@@ -298,7 +298,7 @@ static int sharp_ls060_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int sharp_ls060_remove(struct mipi_dsi_device *dsi) static void sharp_ls060_remove(struct mipi_dsi_device *dsi)
{ {
struct sharp_ls060 *ctx = mipi_dsi_get_drvdata(dsi); struct sharp_ls060 *ctx = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -308,8 +308,6 @@ static int sharp_ls060_remove(struct mipi_dsi_device *dsi) ...@@ -308,8 +308,6 @@ static int sharp_ls060_remove(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id sharp_ls060t1sx01_of_match[] = { static const struct of_device_id sharp_ls060t1sx01_of_match[] = {
......
...@@ -4566,7 +4566,7 @@ static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi) ...@@ -4566,7 +4566,7 @@ static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi)
return err; return err;
} }
static int panel_simple_dsi_remove(struct mipi_dsi_device *dsi) static void panel_simple_dsi_remove(struct mipi_dsi_device *dsi)
{ {
int err; int err;
...@@ -4575,8 +4575,6 @@ static int panel_simple_dsi_remove(struct mipi_dsi_device *dsi) ...@@ -4575,8 +4575,6 @@ static int panel_simple_dsi_remove(struct mipi_dsi_device *dsi)
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);
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)
......
...@@ -387,14 +387,12 @@ static int st7701_dsi_probe(struct mipi_dsi_device *dsi) ...@@ -387,14 +387,12 @@ static int st7701_dsi_probe(struct mipi_dsi_device *dsi)
return mipi_dsi_attach(dsi); return mipi_dsi_attach(dsi);
} }
static int st7701_dsi_remove(struct mipi_dsi_device *dsi) static void st7701_dsi_remove(struct mipi_dsi_device *dsi)
{ {
struct st7701 *st7701 = mipi_dsi_get_drvdata(dsi); struct st7701 *st7701 = mipi_dsi_get_drvdata(dsi);
mipi_dsi_detach(dsi); mipi_dsi_detach(dsi);
drm_panel_remove(&st7701->panel); drm_panel_remove(&st7701->panel);
return 0;
} }
static const struct of_device_id st7701_of_match[] = { static const struct of_device_id st7701_of_match[] = {
......
...@@ -598,7 +598,7 @@ static void st7703_shutdown(struct mipi_dsi_device *dsi) ...@@ -598,7 +598,7 @@ static void st7703_shutdown(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "Failed to disable panel: %d\n", ret); dev_err(&dsi->dev, "Failed to disable panel: %d\n", ret);
} }
static int st7703_remove(struct mipi_dsi_device *dsi) static void st7703_remove(struct mipi_dsi_device *dsi)
{ {
struct st7703 *ctx = mipi_dsi_get_drvdata(dsi); struct st7703 *ctx = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -612,8 +612,6 @@ static int st7703_remove(struct mipi_dsi_device *dsi) ...@@ -612,8 +612,6 @@ static int st7703_remove(struct mipi_dsi_device *dsi)
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
st7703_debugfs_remove(ctx); st7703_debugfs_remove(ctx);
return 0;
} }
static const struct of_device_id st7703_of_match[] = { static const struct of_device_id st7703_of_match[] = {
......
...@@ -517,7 +517,7 @@ static int truly_nt35521_probe(struct mipi_dsi_device *dsi) ...@@ -517,7 +517,7 @@ static int truly_nt35521_probe(struct mipi_dsi_device *dsi)
return 0; return 0;
} }
static int truly_nt35521_remove(struct mipi_dsi_device *dsi) static void truly_nt35521_remove(struct mipi_dsi_device *dsi)
{ {
struct truly_nt35521 *ctx = mipi_dsi_get_drvdata(dsi); struct truly_nt35521 *ctx = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -527,8 +527,6 @@ static int truly_nt35521_remove(struct mipi_dsi_device *dsi) ...@@ -527,8 +527,6 @@ static int truly_nt35521_remove(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id truly_nt35521_of_match[] = { static const struct of_device_id truly_nt35521_of_match[] = {
......
...@@ -210,7 +210,7 @@ static int tdo_tl070wsh30_panel_probe(struct mipi_dsi_device *dsi) ...@@ -210,7 +210,7 @@ static int tdo_tl070wsh30_panel_probe(struct mipi_dsi_device *dsi)
return mipi_dsi_attach(dsi); return mipi_dsi_attach(dsi);
} }
static int tdo_tl070wsh30_panel_remove(struct mipi_dsi_device *dsi) static void tdo_tl070wsh30_panel_remove(struct mipi_dsi_device *dsi)
{ {
struct tdo_tl070wsh30_panel *tdo_tl070wsh30 = mipi_dsi_get_drvdata(dsi); struct tdo_tl070wsh30_panel *tdo_tl070wsh30 = mipi_dsi_get_drvdata(dsi);
int err; int err;
...@@ -222,8 +222,6 @@ static int tdo_tl070wsh30_panel_remove(struct mipi_dsi_device *dsi) ...@@ -222,8 +222,6 @@ static int tdo_tl070wsh30_panel_remove(struct mipi_dsi_device *dsi)
drm_panel_remove(&tdo_tl070wsh30->base); drm_panel_remove(&tdo_tl070wsh30->base);
drm_panel_disable(&tdo_tl070wsh30->base); drm_panel_disable(&tdo_tl070wsh30->base);
drm_panel_unprepare(&tdo_tl070wsh30->base); drm_panel_unprepare(&tdo_tl070wsh30->base);
return 0;
} }
static void tdo_tl070wsh30_panel_shutdown(struct mipi_dsi_device *dsi) static void tdo_tl070wsh30_panel_shutdown(struct mipi_dsi_device *dsi)
......
...@@ -616,7 +616,7 @@ static int truly_nt35597_probe(struct mipi_dsi_device *dsi) ...@@ -616,7 +616,7 @@ static int truly_nt35597_probe(struct mipi_dsi_device *dsi)
return ret; return ret;
} }
static int truly_nt35597_remove(struct mipi_dsi_device *dsi) static void truly_nt35597_remove(struct mipi_dsi_device *dsi)
{ {
struct truly_nt35597 *ctx = mipi_dsi_get_drvdata(dsi); struct truly_nt35597 *ctx = mipi_dsi_get_drvdata(dsi);
...@@ -628,7 +628,6 @@ static int truly_nt35597_remove(struct mipi_dsi_device *dsi) ...@@ -628,7 +628,6 @@ static int truly_nt35597_remove(struct mipi_dsi_device *dsi)
} }
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id truly_nt35597_of_match[] = { static const struct of_device_id truly_nt35597_of_match[] = {
......
...@@ -256,7 +256,7 @@ static int visionox_rm69299_probe(struct mipi_dsi_device *dsi) ...@@ -256,7 +256,7 @@ static int visionox_rm69299_probe(struct mipi_dsi_device *dsi)
return ret; return ret;
} }
static int visionox_rm69299_remove(struct mipi_dsi_device *dsi) static void visionox_rm69299_remove(struct mipi_dsi_device *dsi)
{ {
struct visionox_rm69299 *ctx = mipi_dsi_get_drvdata(dsi); struct visionox_rm69299 *ctx = mipi_dsi_get_drvdata(dsi);
...@@ -264,7 +264,6 @@ static int visionox_rm69299_remove(struct mipi_dsi_device *dsi) ...@@ -264,7 +264,6 @@ static int visionox_rm69299_remove(struct mipi_dsi_device *dsi)
mipi_dsi_device_unregister(ctx->dsi); mipi_dsi_device_unregister(ctx->dsi);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id visionox_rm69299_of_match[] = { static const struct of_device_id visionox_rm69299_of_match[] = {
......
...@@ -339,7 +339,7 @@ static void xpp055c272_shutdown(struct mipi_dsi_device *dsi) ...@@ -339,7 +339,7 @@ static void xpp055c272_shutdown(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "Failed to disable panel: %d\n", ret); dev_err(&dsi->dev, "Failed to disable panel: %d\n", ret);
} }
static int xpp055c272_remove(struct mipi_dsi_device *dsi) static void xpp055c272_remove(struct mipi_dsi_device *dsi)
{ {
struct xpp055c272 *ctx = mipi_dsi_get_drvdata(dsi); struct xpp055c272 *ctx = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
...@@ -351,8 +351,6 @@ static int xpp055c272_remove(struct mipi_dsi_device *dsi) ...@@ -351,8 +351,6 @@ static int xpp055c272_remove(struct mipi_dsi_device *dsi)
dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret);
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
return 0;
} }
static const struct of_device_id xpp055c272_of_match[] = { static const struct of_device_id xpp055c272_of_match[] = {
......
...@@ -322,7 +322,7 @@ int mipi_dsi_dcs_get_display_brightness(struct mipi_dsi_device *dsi, ...@@ -322,7 +322,7 @@ int mipi_dsi_dcs_get_display_brightness(struct mipi_dsi_device *dsi,
struct mipi_dsi_driver { struct mipi_dsi_driver {
struct device_driver driver; struct device_driver driver;
int(*probe)(struct mipi_dsi_device *dsi); int(*probe)(struct mipi_dsi_device *dsi);
int(*remove)(struct mipi_dsi_device *dsi); void (*remove)(struct mipi_dsi_device *dsi);
void (*shutdown)(struct mipi_dsi_device *dsi); void (*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