Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: dwc3: omap: drop DEV_PM_OPS for now

We need to have actual HW in order to implement
and test that part of the code anyway. Until then
it's best to remove it.

Signed-off-by: Felipe Balbi <balbi@ti.com>

-41
-41
drivers/usb/dwc3/dwc3-omap.c
··· 125 125 u32 dma_status:1; 126 126 }; 127 127 128 - #ifdef CONFIG_PM 129 - static int dwc3_omap_suspend(struct device *dev) 130 - { 131 - struct dwc3_omap *omap = dev_get_drvdata(dev); 132 - 133 - memcpy_fromio(omap->context, omap->base, omap->resource_size); 134 - 135 - return 0; 136 - } 137 - 138 - static int dwc3_omap_resume(struct device *dev) 139 - { 140 - struct dwc3_omap *omap = dev_get_drvdata(dev); 141 - 142 - memcpy_toio(omap->base, omap->context, omap->resource_size); 143 - 144 - return 0; 145 - } 146 - 147 - static int dwc3_omap_idle(struct device *dev) 148 - { 149 - struct dwc3_omap *omap = dev_get_drvdata(dev); 150 - u32 reg; 151 - 152 - /* stop DMA Engine */ 153 - reg = dwc3_readl(omap->base, USBOTGSS_SYSCONFIG); 154 - reg &= ~(USBOTGSS_SYSCONFIG_DMADISABLE); 155 - dwc3_writel(omap->base, USBOTGSS_SYSCONFIG, reg); 156 - 157 - return 0; 158 - } 159 - 160 - static UNIVERSAL_DEV_PM_OPS(dwc3_omap_pm_ops, dwc3_omap_suspend, 161 - dwc3_omap_resume, dwc3_omap_idle); 162 - 163 - #define DEV_PM_OPS (&dwc3_omap_pm_ops) 164 - #else 165 - #define DEV_PM_OPS NULL 166 - #endif 167 - 168 128 static irqreturn_t dwc3_omap_interrupt(int irq, void *_omap) 169 129 { 170 130 struct dwc3_omap *omap = _omap; ··· 348 388 .remove = __devexit_p(dwc3_omap_remove), 349 389 .driver = { 350 390 .name = "omap-dwc3", 351 - .pm = DEV_PM_OPS, 352 391 .of_match_table = of_dwc3_matach, 353 392 }, 354 393 };