drm/panel: simple-panel: no need to send off commands in panel_simple_shutdown

Change-Id: Id0129f899efe6500858ad0aa0aefcfbf5aa101f6
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
This commit is contained in:
Wyon Bi
2018-07-09 09:45:34 +08:00
parent 0d946db93a
commit 18d4d75fcb

View File

@@ -929,7 +929,14 @@ 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);
if (panel->reset_gpio)
gpiod_direction_output(panel->reset_gpio, 1);
if (panel->enable_gpio)
gpiod_direction_output(panel->enable_gpio, 0);
panel_simple_regulator_disable(&panel->base);
}
static const struct drm_display_mode ampire_am800480r3tmqwa1h_mode = {