summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3/dwc3-pci.c
diff options
context:
space:
mode:
authorDoug Wilson <doug.lkml@gmail.com>2017-08-08 14:20:16 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-10 21:31:26 +0300
commit95aa932c93d2a138579d51d4ff922ef0fb1ddd3c (patch)
treed7f6ac6e8ac5edcfd90ffa7ee620dc70c4cf5bf2 /drivers/usb/dwc3/dwc3-pci.c
parent640c0be81b9c33485559e716d914252228361b1c (diff)
downloadlinux-95aa932c93d2a138579d51d4ff922ef0fb1ddd3c.tar.xz
usb/dwc3:constify dev_pm_ops
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3/dwc3-pci.c')
-rw-r--r--drivers/usb/dwc3/dwc3-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c
index 7e995df7a797..54343fbd85ee 100644
--- 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)