]> err.no Git - linux-2.6/blobdiff - arch/blackfin/mach-bf527/boards/ezkit.c
[Blackfin] arch: Fix BUG gpio_direction_output API is not compatitable with GENERIC_G...
[linux-2.6] / arch / blackfin / mach-bf527 / boards / ezkit.c
index bc256811a5e37573a1f86df4a7df4522a312735b..6d70aae4cc9b2e12af8c95d6eddc14c519adff6e 100644 (file)
@@ -317,12 +317,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