fix compile error
authoryangkai <yk@rock-chips.com>
Thu, 6 Sep 2012 09:16:47 +0000 (17:16 +0800)
committeryangkai <yk@rock-chips.com>
Thu, 6 Sep 2012 09:16:47 +0000 (17:16 +0800)
drivers/usb/dwc_otg/usbdev_rk30.c

index 7dcca5f9d89c4dbcc2dac82dadb53f01f4fd12e3..ffb2bb4333d1ef593ae3315b5396f58694721c0b 100755 (executable)
@@ -173,7 +173,6 @@ void usb20otg_clock_init(void* pdata)
 }\r
 void usb20otg_clock_enable(void* pdata, int enable)\r
 {\r
-#\r
     struct dwc_otg_platform_data *usbpdata=pdata;\r
 \r
     if(enable){\r
@@ -224,6 +223,7 @@ int usb20otg_get_status(int id)
         return ret;\r
 }\r
  \r
+#ifdef CONFIG_ARCH_RK3066B\r
 void usb20otg_power_enable(int enable)\r
 { \r
     int ret;\r
@@ -249,6 +249,7 @@ void usb20otg_power_enable(int enable)
         gpio_set_value(RK3066B_OTG_DRV_VBUS, GPIO_HIGH); \r
     }   \r
 }\r
+#endif\r
 struct dwc_otg_platform_data usb20otg_pdata = {\r
     .phyclk = NULL,\r
     .ahbclk = NULL,\r
@@ -404,6 +405,8 @@ int usb20host_get_status(int id)
     }\r
     return ret;\r
 }\r
+\r
+#ifdef CONFIG_ARCH_RK3066B\r
 void usb20host_power_enable(int enable)\r
 { \r
     int ret;\r
@@ -429,6 +432,7 @@ void usb20host_power_enable(int enable)
         //printk("!!!!!!!!!!!!!!!!!!!!!enable host power!!!!!!!!!!!!!!!!!!\n");\r
     }   \r
 }\r
+#endif\r
 struct dwc_otg_platform_data usb20host_pdata = {\r
     .phyclk = NULL,\r
     .ahbclk = NULL,\r