diff options
| author | Jonathan Liu <[email protected]> | 2017-08-07 11:55:45 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2017-08-18 15:10:44 +0000 |
| commit | f3621a8eb59a913612c8e6e37d81f16b649f8b6c (patch) | |
| tree | 5fe7b23bffed9472e32aaeb8f7d98be9fca3de65 /drivers/gpu/drm/panel/panel-simple.c | |
| parent | drm/panel: simple: Fix width and height for Olimex LCD-OLinuXino-4.3TS (diff) | |
| download | kernel-f3621a8eb59a913612c8e6e37d81f16b649f8b6c.tar.gz kernel-f3621a8eb59a913612c8e6e37d81f16b649f8b6c.zip | |
drm/panel: simple: Add missing panel_simple_unprepare() calls
During panel removal or system shutdown panel_simple_disable() is called
which disables the panel backlight but the panel is still powered due to
missing calls to panel_simple_unprepare().
Fixes: d02fd93e2cd8 ("drm/panel: simple - Disable panel on shutdown")
Cc: [email protected] # v3.16+
Signed-off-by: Jonathan Liu <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/panel/panel-simple.c')
| -rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index b441bd6ed4ad..44756853aa0e 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -370,6 +370,7 @@ static int panel_simple_remove(struct device *dev) drm_panel_remove(&panel->base); panel_simple_disable(&panel->base); + panel_simple_unprepare(&panel->base); if (panel->ddc) put_device(&panel->ddc->dev); @@ -385,6 +386,7 @@ static void panel_simple_shutdown(struct device *dev) struct panel_simple *panel = dev_get_drvdata(dev); panel_simple_disable(&panel->base); + panel_simple_unprepare(&panel->base); } static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode = { |
