{
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);
return IRQ_HANDLED;
}
-/***** handler for otg line status change *****/
+#ifdef USB_LINESTATE_IRQ
+/***** handler for usb line status change *****/
static irqreturn_t line_irq_handler(int irq, void *dev_id)
{
return IRQ_HANDLED;
}
+#endif
/************* register usb detection irqs **************/
static int otg_irq_detect_init(struct platform_device *pdev)
enable_irq_wake(irq);
}
}
-#if 0
+#ifdef USB_LINESTATE_IRQ
/*register otg_linestate irq */
irq = platform_get_irq_byname(pdev, "otg_linestate");
if (irq > 0) {
}
/*-------------------------------------------------------------------------*/
-
+#ifndef CONFIG_ARCH_ROCKCHIP
static void invalidate_sub(struct fsg_lun *curlun)
{
struct file *filp = curlun->filp;
}
return 0;
}
+#endif
/*-------------------------------------------------------------------------*/