diff options
author | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2019-07-12 13:58:01 +0300 |
---|---|---|
committer | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2019-07-12 16:07:42 +0300 |
commit | b4dd90d27b774b9062d1dc3d85dc2a031cc72507 (patch) | |
tree | 5feb71b97e6ec86d53fd01cea8752ed3f71f2200 /drivers | |
parent | 64aab86387c33f765f678fe4d3648681b09fd6ca (diff) |
drm/mxsfb: grab the pm->sync() reference on probing
The mxsfb driver doesn't have a real consumer. This leads the power
domains of eLCDIF to off right after device probing.
It is required to get the reference counter to prevent this behavior.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c b/drivers/gpu/drm/mxsfb/mxsfb_drv.c index 1a12f5e1bd13..11d95d48d2ae 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c +++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c @@ -556,6 +556,7 @@ static int mxsfb_load(struct drm_device *drm, unsigned long flags) drm_helper_hpd_irq_event(drm); pm_runtime_enable(drm->dev); + pm_runtime_get_sync(drm->dev); return 0; @@ -592,6 +593,7 @@ static void mxsfb_unload(struct drm_device *drm) drm->dev_private = NULL; + pm_runtime_put_sync(drm->dev); pm_runtime_disable(drm->dev); } |