USB: fix compile warnings.
[firefly-linux-kernel-4.4.55.git] / drivers / usb / dwc_otg_310 / dwc_otg_pcd_linux.c
index 4459547e82eb7a5470b4f2618e08166623bb0d7d..8d47342f12a253ffaa495a9ca49c90d8a7cc507d 100755 (executable)
@@ -1646,9 +1646,11 @@ static void dwc_otg_pcd_work_init(dwc_otg_pcd_t *pcd,
 {
 
        struct dwc_otg_device *otg_dev = pcd->otg_dev;
-       struct dwc_otg_platform_data *pldata = otg_dev->pldata;
        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
 
        INIT_DELAYED_WORK(&pcd->reconnect, dwc_phy_reconnect);
        INIT_DELAYED_WORK(&pcd->check_vbus_work, dwc_otg_pcd_check_vbus_work);