]> err.no Git - linux-2.6/blobdiff - arch/blackfin/mach-bf537/boards/pnav10.c
[Blackfin] arch: Fix BUG gpio_direction_output API is not compatitable with GENERIC_G...
[linux-2.6] / arch / blackfin / mach-bf537 / boards / pnav10.c
index 23e10c7dab5b292987912d65f1a20d0eabb5a37c..4c4870590bd868d4f9b9151ae912264ed7dce58a 100644 (file)
@@ -134,12 +134,8 @@ static struct resource sl811_hcd_resources[] = {
 void sl811_port_power(struct device *dev, int is_on)
 {
        gpio_request(CONFIG_USB_SL811_BFIN_GPIO_VBUS, "usb:SL811_VBUS");
-       gpio_direction_output(CONFIG_USB_SL811_BFIN_GPIO_VBUS);
+       gpio_direction_output(CONFIG_USB_SL811_BFIN_GPIO_VBUS, is_on);
 
-       if (is_on)
-               gpio_set_value(CONFIG_USB_SL811_BFIN_GPIO_VBUS, 1);
-       else
-               gpio_set_value(CONFIG_USB_SL811_BFIN_GPIO_VBUS, 0);
 }
 #endif