dwc3-pci.c (2536524a91fe5c5a9fddd282fd4e79ee0976aefe) | dwc3-pci.c (696118c016dd5f5caaa05360f13f8acd8fb9d1a7) |
---|---|
1/** 2 * dwc3-pci.c - PCI Specific glue layer 3 * 4 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com 5 * 6 * Authors: Felipe Balbi <balbi@ti.com>, 7 * Sebastian Andrzej Siewior <bigeasy@linutronix.de> 8 * --- 235 unchanged lines hidden (view full) --- 244} 245 246static int dwc3_pci_runtime_resume(struct device *dev) 247{ 248 struct platform_device *dwc3 = dev_get_drvdata(dev); 249 250 return pm_runtime_get(&dwc3->dev); 251} | 1/** 2 * dwc3-pci.c - PCI Specific glue layer 3 * 4 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com 5 * 6 * Authors: Felipe Balbi <balbi@ti.com>, 7 * Sebastian Andrzej Siewior <bigeasy@linutronix.de> 8 * --- 235 unchanged lines hidden (view full) --- 244} 245 246static int dwc3_pci_runtime_resume(struct device *dev) 247{ 248 struct platform_device *dwc3 = dev_get_drvdata(dev); 249 250 return pm_runtime_get(&dwc3->dev); 251} |
252#endif /* CONFIG_PM */ |
|
252 | 253 |
254#ifdef CONFIG_PM_SLEEP |
|
253static int dwc3_pci_pm_dummy(struct device *dev) 254{ 255 /* 256 * There's nothing to do here. No, seriously. Everything is either taken 257 * care either by PCI subsystem or dwc3/core.c, so we have nothing 258 * missing here. 259 * 260 * So you'd think we didn't need this at all, but PCI subsystem will 261 * bail out if we don't have a valid callback :-s 262 */ 263 return 0; 264} | 255static int dwc3_pci_pm_dummy(struct device *dev) 256{ 257 /* 258 * There's nothing to do here. No, seriously. Everything is either taken 259 * care either by PCI subsystem or dwc3/core.c, so we have nothing 260 * missing here. 261 * 262 * So you'd think we didn't need this at all, but PCI subsystem will 263 * bail out if we don't have a valid callback :-s 264 */ 265 return 0; 266} |
265#endif /* CONFIG_PM */ | 267#endif /* CONFIG_PM_SLEEP */ |
266 267static struct dev_pm_ops dwc3_pci_dev_pm_ops = { 268 SET_SYSTEM_SLEEP_PM_OPS(dwc3_pci_pm_dummy, dwc3_pci_pm_dummy) 269 SET_RUNTIME_PM_OPS(dwc3_pci_runtime_suspend, dwc3_pci_runtime_resume, 270 NULL) 271}; 272 273static struct pci_driver dwc3_pci_driver = { --- 14 unchanged lines hidden --- | 268 269static struct dev_pm_ops dwc3_pci_dev_pm_ops = { 270 SET_SYSTEM_SLEEP_PM_OPS(dwc3_pci_pm_dummy, dwc3_pci_pm_dummy) 271 SET_RUNTIME_PM_OPS(dwc3_pci_runtime_suspend, dwc3_pci_runtime_resume, 272 NULL) 273}; 274 275static struct pci_driver dwc3_pci_driver = { --- 14 unchanged lines hidden --- |