aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 71566d82e482..789c07937990 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -106,7 +106,7 @@ static int panel_simple_disable(struct drm_panel *panel)
106 } 106 }
107 107
108 if (p->enable_gpio) 108 if (p->enable_gpio)
109 gpiod_set_value(p->enable_gpio, 0); 109 gpiod_set_value_cansleep(p->enable_gpio, 0);
110 110
111 regulator_disable(p->supply); 111 regulator_disable(p->supply);
112 p->enabled = false; 112 p->enabled = false;
@@ -129,7 +129,7 @@ static int panel_simple_enable(struct drm_panel *panel)
129 } 129 }
130 130
131 if (p->enable_gpio) 131 if (p->enable_gpio)
132 gpiod_set_value(p->enable_gpio, 1); 132 gpiod_set_value_cansleep(p->enable_gpio, 1);
133 133
134 if (p->backlight) { 134 if (p->backlight) {
135 p->backlight->props.power = FB_BLANK_UNBLANK; 135 p->backlight->props.power = FB_BLANK_UNBLANK;