Commit 1ecf643f authored by Sebastian Reichel's avatar Sebastian Reichel Committed by Tomi Valkeinen

drm/omap: panel-dsi-cm: support unbinding

Now, that the driver implements the common DRM panel API
the unbind no longer needs to be suppressed.
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201215104657.802264-37-tomi.valkeinen@ti.com
parent 1f4e8716
...@@ -597,7 +597,7 @@ static int dsicm_probe(struct mipi_dsi_device *dsi) ...@@ -597,7 +597,7 @@ static int dsicm_probe(struct mipi_dsi_device *dsi)
return r; return r;
} }
static int __exit dsicm_remove(struct mipi_dsi_device *dsi) static int 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);
...@@ -627,11 +627,10 @@ MODULE_DEVICE_TABLE(of, dsicm_of_match); ...@@ -627,11 +627,10 @@ MODULE_DEVICE_TABLE(of, dsicm_of_match);
static struct mipi_dsi_driver dsicm_driver = { static struct mipi_dsi_driver dsicm_driver = {
.probe = dsicm_probe, .probe = dsicm_probe,
.remove = __exit_p(dsicm_remove), .remove = dsicm_remove,
.driver = { .driver = {
.name = "panel-dsi-cm", .name = "panel-dsi-cm",
.of_match_table = dsicm_of_match, .of_match_table = dsicm_of_match,
.suppress_bind_attrs = true,
}, },
}; };
module_mipi_dsi_driver(dsicm_driver); module_mipi_dsi_driver(dsicm_driver);
......
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