projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e374f0
)
usb: dwc3: pci: constify dev_pm_ops
author
Doug Wilson
<doug.lkml@gmail.com>
Tue, 8 Aug 2017 11:20:16 +0000
(16:50 +0530)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Wed, 9 Aug 2017 10:09:50 +0000
(13:09 +0300)
dev_pm_ops is not supposed to change at runtime. Marking it constant.
Signed-off-by: Doug Wilson <doug.wilson@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/dwc3-pci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/dwc3/dwc3-pci.c
b/drivers/usb/dwc3/dwc3-pci.c
index 7e995df7a797b4353ba18e17ed701c3bc2096c4e..54343fbd85eef112f38283ee0376f911a2bc2cb8 100644
(file)
--- a/
drivers/usb/dwc3/dwc3-pci.c
+++ b/
drivers/usb/dwc3/dwc3-pci.c
@@
-345,7
+345,7
@@
static int dwc3_pci_resume(struct device *dev)
}
#endif /* CONFIG_PM_SLEEP */
-static struct dev_pm_ops dwc3_pci_dev_pm_ops = {
+static
const
struct dev_pm_ops dwc3_pci_dev_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(dwc3_pci_suspend, dwc3_pci_resume)
SET_RUNTIME_PM_OPS(dwc3_pci_runtime_suspend, dwc3_pci_runtime_resume,
NULL)