if(!(dwc_otg_hcd->host_enabled&1))
return 0;
hprt0.d32 = dwc_read_reg32(core_if->host_if->hprt0);
-#ifdef CONFIG_USB_SUSPEND
+#ifdef CONFIG_PM_RUNTIME
if((!hprt0.b.prtena))
return 0;
#endif
DWC_PRINT("%s, usb device mode\n", __func__);
return 0;
}
-//#ifdef CONFIG_USB_SUSPEND
+//#ifdef CONFIG_PM_RUNTIME
if(!(dwc_otg_hcd->host_enabled&1))
return 0;
//#endif
dwc_write_reg32(&core_if->core_global_regs->gintmsk, gintmsk.d32);
hprt0.d32 = dwc_read_reg32(core_if->host_if->hprt0);
-#ifdef CONFIG_USB_SUSPEND
+#ifdef CONFIG_PM_RUNTIME
if(!hprt0.b.prtena)
return 0;
#endif
* a negative error on failure.
*/
extern uint32_t g_dbg_lvl;
-int __devinit dwc_otg_hcd_init(struct device *dev)
+int dwc_otg_hcd_init(struct device *dev)
{
struct usb_hcd *hcd = NULL;
dwc_otg_hcd_t *dwc_otg_hcd = NULL;
.data = 0,
};
-int __devinit host20_hcd_init(struct device *dev)
+int host20_hcd_init(struct device *dev)
{
struct usb_hcd *hcd = NULL;
dwc_otg_hcd_t *dwc_otg_hcd = NULL;
dwc_write_reg32(core_if->host_if->hprt0, hprt0.d32);
break;
case USB_PORT_FEAT_SUSPEND:
- #ifdef CONFIG_USB_SUSPEND
+ #ifdef CONFIG_PM_RUNTIME
break;
#endif
DWC_DEBUGPL (DBG_HCD, "DWC OTG HCD HUB CONTROL - "
switch (_wValue) {
case USB_PORT_FEAT_SUSPEND:
- #ifdef CONFIG_USB_SUSPEND
+ #ifdef CONFIG_PM_RUNTIME
break;
#endif
DWC_DEBUGPL (DBG_HCD, "DWC OTG HCD HUB CONTROL - "