Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 279fcd48 authored by Jani Nikula's avatar Jani Nikula Committed by Tomi Valkeinen
Browse files

OMAP: DSS2: Fix device disable when driver is not loaded



Only call driver disable when device isn't already disabled, which also
handles the driver not loaded case.

Signed-off-by: default avatarJani Nikula <ext-jani.1.nikula@nokia.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@nokia.com>
parent 35bc42c5
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -545,7 +545,10 @@ int dss_resume_all_devices(void)
static int dss_disable_device(struct device *dev, void *data)
static int dss_disable_device(struct device *dev, void *data)
{
{
	struct omap_dss_device *dssdev = to_dss_device(dev);
	struct omap_dss_device *dssdev = to_dss_device(dev);

	if (dssdev->state != OMAP_DSS_DISPLAY_DISABLED)
		dssdev->driver->disable(dssdev);
		dssdev->driver->disable(dssdev);

	return 0;
	return 0;
}
}