USB: fix compile warnings.
authorwlf <wulf@rock-chips.com>
Thu, 12 Jun 2014 03:50:41 +0000 (11:50 +0800)
committerwlf <wulf@rock-chips.com>
Thu, 12 Jun 2014 03:50:41 +0000 (11:50 +0800)
drivers/usb/dwc_otg_310/dwc_otg_pcd_linux.c

index 8d47342f12a253ffaa495a9ca49c90d8a7cc507d..def6e719d969c395b02d97371f959579802caafe 100755 (executable)
@@ -1646,12 +1646,13 @@ static void dwc_otg_pcd_work_init(dwc_otg_pcd_t *pcd,
 {
 
        struct dwc_otg_device *otg_dev = pcd->otg_dev;
-       pcd->vbus_status = USB_BC_TYPE_DISCNT;
-       pcd->phy_suspend = USB_PHY_ENABLED;
 #ifdef CONFIG_RK_USB_UART
        struct dwc_otg_platform_data *pldata = otg_dev->pldata;
 #endif
 
+       pcd->vbus_status = USB_BC_TYPE_DISCNT;
+       pcd->phy_suspend = USB_PHY_ENABLED;
+
        INIT_DELAYED_WORK(&pcd->reconnect, dwc_phy_reconnect);
        INIT_DELAYED_WORK(&pcd->check_vbus_work, dwc_otg_pcd_check_vbus_work);