mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
Revert "drm/omap: dss: Remove unused omap_dss_device operations"
This reverts commit e086558ae9 ("drm/omap: dss: Remove unused
omap_dss_device operations")
This is still needed by DSI. E.g. unloading modules without this will
cause a crash.
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201215104657.802264-2-tomi.valkeinen@ti.com
This commit is contained in:
committed by
Tomi Valkeinen
parent
64ff189118
commit
12db515bae
@@ -234,6 +234,18 @@ void omapdss_device_disconnect(struct omap_dss_device *src,
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(omapdss_device_disconnect);
|
||||
|
||||
void omapdss_device_pre_enable(struct omap_dss_device *dssdev)
|
||||
{
|
||||
if (!dssdev)
|
||||
return;
|
||||
|
||||
omapdss_device_pre_enable(dssdev->next);
|
||||
|
||||
if (dssdev->ops && dssdev->ops->pre_enable)
|
||||
dssdev->ops->pre_enable(dssdev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(omapdss_device_pre_enable);
|
||||
|
||||
void omapdss_device_enable(struct omap_dss_device *dssdev)
|
||||
{
|
||||
if (!dssdev)
|
||||
@@ -260,6 +272,20 @@ void omapdss_device_disable(struct omap_dss_device *dssdev)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(omapdss_device_disable);
|
||||
|
||||
void omapdss_device_post_disable(struct omap_dss_device *dssdev)
|
||||
{
|
||||
if (!dssdev)
|
||||
return;
|
||||
|
||||
if (dssdev->ops && dssdev->ops->post_disable)
|
||||
dssdev->ops->post_disable(dssdev);
|
||||
|
||||
omapdss_device_post_disable(dssdev->next);
|
||||
|
||||
dssdev->state = OMAP_DSS_DISPLAY_DISABLED;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(omapdss_device_post_disable);
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Components Handling
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user