OMAPDSS: TFP410: use gpio_set_value_cansleep
authorRuss Dill <Russ.Dill@ti.com>
Wed, 9 May 2012 22:08:08 +0000 (15:08 -0700)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 11 May 2012 12:09:29 +0000 (15:09 +0300)
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>
drivers/video/omap2/displays/panel-tfp410.c

index f03964e5b6abcde99d0ad6b92f2a4f43cd254c6f..bff306e041cabef157929f4078401122c06510d9 100644 (file)
@@ -64,7 +64,7 @@ static int tfp410_power_on(struct omap_dss_device *dssdev)
                goto err0;
 
        if (gpio_is_valid(ddata->pd_gpio))
-               gpio_set_value(ddata->pd_gpio, 1);
+               gpio_set_value_cansleep(ddata->pd_gpio, 1);
 
        return 0;
 err0:
@@ -79,7 +79,7 @@ static void tfp410_power_off(struct omap_dss_device *dssdev)
                return;
 
        if (gpio_is_valid(ddata->pd_gpio))
-               gpio_set_value(ddata->pd_gpio, 0);
+               gpio_set_value_cansleep(ddata->pd_gpio, 0);
 
        omapdss_dpi_display_disable(dssdev);
 }