From 73be0c227b9f0fa3e1c4896f7aed3107108a4db6 Mon Sep 17 00:00:00 2001 From: wlf Date: Thu, 12 Jun 2014 11:50:41 +0800 Subject: [PATCH] USB: fix compile warnings. --- drivers/usb/dwc_otg_310/dwc_otg_pcd_linux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.34.1