aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorRuss Dill <Russ.Dill@ti.com>2012-05-09 18:08:08 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-05-11 08:09:29 -0400
commitaf461d64e11f81db4a7619dd574fe779ae3a0884 (patch)
tree4985e69beb92a6f9ed9e280dc1e6d5d6c3efb645 /drivers/video
parent38f3daf678d909e8ee5638f21a34f35c01343420 (diff)
OMAPDSS: TFP410: use gpio_set_value_cansleep
The Beagleboard xM gpio used for TFP410 powerdown is connected through an I2C attached chip which means setting the GPIO can sleep. Code that calls tfp410_power_on/off holds a mutex, so sleeping should be fine. Signed-off-by: Russ Dill <Russ.Dill@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/omap2/displays/panel-tfp410.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/omap2/displays/panel-tfp410.c b/drivers/video/omap2/displays/panel-tfp410.c
index f03964e5b6ab..bff306e041ca 100644
--- a/drivers/video/omap2/displays/panel-tfp410.c
+++ b/drivers/video/omap2/displays/panel-tfp410.c
@@ -64,7 +64,7 @@ static int tfp410_power_on(struct omap_dss_device *dssdev)
64 goto err0; 64 goto err0;
65 65
66 if (gpio_is_valid(ddata->pd_gpio)) 66 if (gpio_is_valid(ddata->pd_gpio))
67 gpio_set_value(ddata->pd_gpio, 1); 67 gpio_set_value_cansleep(ddata->pd_gpio, 1);
68 68
69 return 0; 69 return 0;
70err0: 70err0:
@@ -79,7 +79,7 @@ static void tfp410_power_off(struct omap_dss_device *dssdev)
79 return; 79 return;
80 80
81 if (gpio_is_valid(ddata->pd_gpio)) 81 if (gpio_is_valid(ddata->pd_gpio))
82 gpio_set_value(ddata->pd_gpio, 0); 82 gpio_set_value_cansleep(ddata->pd_gpio, 0);
83 83
84 omapdss_dpi_display_disable(dssdev); 84 omapdss_dpi_display_disable(dssdev);
85} 85}