From: wlf <wulf@rock-chips.com> Date: Thu, 12 Jun 2014 03:50:41 +0000 (+0800) Subject: USB: fix compile warnings. X-Git-Tag: firefly_0821_release~5139 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=73be0c227b9f0fa3e1c4896f7aed3107108a4db6;p=firefly-linux-kernel-4.4.55.git USB: fix compile warnings. --- diff --git a/drivers/usb/dwc_otg_310/dwc_otg_pcd_linux.c b/drivers/usb/dwc_otg_310/dwc_otg_pcd_linux.c index 8d47342f12a2..def6e719d969 100755 --- a/drivers/usb/dwc_otg_310/dwc_otg_pcd_linux.c +++ b/drivers/usb/dwc_otg_310/dwc_otg_pcd_linux.c @@ -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);