]> err.no Git - linux-2.6/blobdiff - arch/blackfin/mach-bf537/boards/stamp.c
[Blackfin] arch: Fix BUG gpio_direction_output API is not compatitable with GENERIC_G...
[linux-2.6] / arch / blackfin / mach-bf537 / boards / stamp.c
index 3e0ad04d8d75f5b2b62dbd63c596a17f8a61da13..37759ac7df2a7cc36c61c5b7dad228b43a25b1ef 100644 (file)
@@ -250,12 +250,7 @@ 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);
-
-       if (is_on)
-               gpio_set_value(CONFIG_USB_SL811_BFIN_GPIO_VBUS, 1);
-       else
-               gpio_set_value(CONFIG_USB_SL811_BFIN_GPIO_VBUS, 0);
+       gpio_direction_output(CONFIG_USB_SL811_BFIN_GPIO_VBUS, is_on);
 }
 #endif