Commit 471452104b8520337ae2fb48c4e61cd4896e025d

Authored by Alexey Dobriyan
Committed by Linus Torvalds
1 parent 0ead0f84e8

const: constify remaining dev_pm_ops

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 76 changed files with 76 additions and 76 deletions Side-by-side Diff

arch/arm/plat-omap/debug-leds.c
... ... @@ -293,7 +293,7 @@
293 293 return 0;
294 294 }
295 295  
296   -static struct dev_pm_ops fpga_dev_pm_ops = {
  296 +static const struct dev_pm_ops fpga_dev_pm_ops = {
297 297 .suspend_noirq = fpga_suspend_noirq,
298 298 .resume_noirq = fpga_resume_noirq,
299 299 };
arch/arm/plat-omap/gpio.c
... ... @@ -1431,7 +1431,7 @@
1431 1431 return 0;
1432 1432 }
1433 1433  
1434   -static struct dev_pm_ops omap_mpuio_dev_pm_ops = {
  1434 +static const struct dev_pm_ops omap_mpuio_dev_pm_ops = {
1435 1435 .suspend_noirq = omap_mpuio_suspend_noirq,
1436 1436 .resume_noirq = omap_mpuio_resume_noirq,
1437 1437 };
arch/s390/appldata/appldata_base.c
... ... @@ -551,7 +551,7 @@
551 551 return appldata_restore(dev);
552 552 }
553 553  
554   -static struct dev_pm_ops appldata_pm_ops = {
  554 +static const struct dev_pm_ops appldata_pm_ops = {
555 555 .freeze = appldata_freeze,
556 556 .thaw = appldata_thaw,
557 557 .restore = appldata_restore,
drivers/block/floppy.c
... ... @@ -4162,7 +4162,7 @@
4162 4162 return 0;
4163 4163 }
4164 4164  
4165   -static struct dev_pm_ops floppy_pm_ops = {
  4165 +static const struct dev_pm_ops floppy_pm_ops = {
4166 4166 .resume = floppy_resume,
4167 4167 .restore = floppy_resume,
4168 4168 };
drivers/char/hvc_iucv.c
... ... @@ -931,7 +931,7 @@
931 931 };
932 932  
933 933 /* Suspend / resume device operations */
934   -static struct dev_pm_ops hvc_iucv_pm_ops = {
  934 +static const struct dev_pm_ops hvc_iucv_pm_ops = {
935 935 .freeze = hvc_iucv_pm_freeze,
936 936 .thaw = hvc_iucv_pm_restore_thaw,
937 937 .restore = hvc_iucv_pm_restore_thaw,
drivers/dma/at_hdmac.c
... ... @@ -1188,7 +1188,7 @@
1188 1188 return 0;
1189 1189 }
1190 1190  
1191   -static struct dev_pm_ops at_dma_dev_pm_ops = {
  1191 +static const struct dev_pm_ops at_dma_dev_pm_ops = {
1192 1192 .suspend_noirq = at_dma_suspend_noirq,
1193 1193 .resume_noirq = at_dma_resume_noirq,
1194 1194 };
drivers/dma/dw_dmac.c
... ... @@ -1427,7 +1427,7 @@
1427 1427 return 0;
1428 1428 }
1429 1429  
1430   -static struct dev_pm_ops dw_dev_pm_ops = {
  1430 +static const struct dev_pm_ops dw_dev_pm_ops = {
1431 1431 .suspend_noirq = dw_suspend_noirq,
1432 1432 .resume_noirq = dw_resume_noirq,
1433 1433 };
drivers/dma/txx9dmac.c
... ... @@ -1313,7 +1313,7 @@
1313 1313  
1314 1314 }
1315 1315  
1316   -static struct dev_pm_ops txx9dmac_dev_pm_ops = {
  1316 +static const struct dev_pm_ops txx9dmac_dev_pm_ops = {
1317 1317 .suspend_noirq = txx9dmac_suspend_noirq,
1318 1318 .resume_noirq = txx9dmac_resume_noirq,
1319 1319 };
drivers/hwmon/applesmc.c
... ... @@ -518,7 +518,7 @@
518 518 return applesmc_pm_resume(dev);
519 519 }
520 520  
521   -static struct dev_pm_ops applesmc_pm_ops = {
  521 +static const struct dev_pm_ops applesmc_pm_ops = {
522 522 .resume = applesmc_pm_resume,
523 523 .restore = applesmc_pm_restore,
524 524 };
drivers/i2c/busses/i2c-pxa.c
... ... @@ -1155,7 +1155,7 @@
1155 1155 return 0;
1156 1156 }
1157 1157  
1158   -static struct dev_pm_ops i2c_pxa_dev_pm_ops = {
  1158 +static const struct dev_pm_ops i2c_pxa_dev_pm_ops = {
1159 1159 .suspend_noirq = i2c_pxa_suspend_noirq,
1160 1160 .resume_noirq = i2c_pxa_resume_noirq,
1161 1161 };
drivers/i2c/busses/i2c-s3c2410.c
... ... @@ -967,7 +967,7 @@
967 967 return 0;
968 968 }
969 969  
970   -static struct dev_pm_ops s3c24xx_i2c_dev_pm_ops = {
  970 +static const struct dev_pm_ops s3c24xx_i2c_dev_pm_ops = {
971 971 .suspend_noirq = s3c24xx_i2c_suspend_noirq,
972 972 .resume = s3c24xx_i2c_resume,
973 973 };
drivers/i2c/busses/i2c-sh_mobile.c
... ... @@ -647,7 +647,7 @@
647 647 return 0;
648 648 }
649 649  
650   -static struct dev_pm_ops sh_mobile_i2c_dev_pm_ops = {
  650 +static const struct dev_pm_ops sh_mobile_i2c_dev_pm_ops = {
651 651 .runtime_suspend = sh_mobile_i2c_runtime_nop,
652 652 .runtime_resume = sh_mobile_i2c_runtime_nop,
653 653 };
drivers/input/keyboard/adp5588-keys.c
... ... @@ -319,7 +319,7 @@
319 319 return 0;
320 320 }
321 321  
322   -static struct dev_pm_ops adp5588_dev_pm_ops = {
  322 +static const struct dev_pm_ops adp5588_dev_pm_ops = {
323 323 .suspend = adp5588_suspend,
324 324 .resume = adp5588_resume,
325 325 };
drivers/input/keyboard/sh_keysc.c
... ... @@ -295,7 +295,7 @@
295 295 return 0;
296 296 }
297 297  
298   -static struct dev_pm_ops sh_keysc_dev_pm_ops = {
  298 +static const struct dev_pm_ops sh_keysc_dev_pm_ops = {
299 299 .suspend = sh_keysc_suspend,
300 300 .resume = sh_keysc_resume,
301 301 };
drivers/input/misc/bfin_rotary.c
... ... @@ -247,7 +247,7 @@
247 247 return 0;
248 248 }
249 249  
250   -static struct dev_pm_ops bfin_rotary_pm_ops = {
  250 +static const struct dev_pm_ops bfin_rotary_pm_ops = {
251 251 .suspend = bfin_rotary_suspend,
252 252 .resume = bfin_rotary_resume,
253 253 };
drivers/input/misc/pcspkr.c
... ... @@ -127,7 +127,7 @@
127 127 pcspkr_event(NULL, EV_SND, SND_BELL, 0);
128 128 }
129 129  
130   -static struct dev_pm_ops pcspkr_pm_ops = {
  130 +static const struct dev_pm_ops pcspkr_pm_ops = {
131 131 .suspend = pcspkr_suspend,
132 132 };
133 133  
drivers/input/touchscreen/pcap_ts.c
... ... @@ -233,7 +233,7 @@
233 233 return 0;
234 234 }
235 235  
236   -static struct dev_pm_ops pcap_ts_pm_ops = {
  236 +static const struct dev_pm_ops pcap_ts_pm_ops = {
237 237 .suspend = pcap_ts_suspend,
238 238 .resume = pcap_ts_resume,
239 239 };
drivers/media/video/davinci/vpfe_capture.c
... ... @@ -2127,7 +2127,7 @@
2127 2127 return -1;
2128 2128 }
2129 2129  
2130   -static struct dev_pm_ops vpfe_dev_pm_ops = {
  2130 +static const struct dev_pm_ops vpfe_dev_pm_ops = {
2131 2131 .suspend = vpfe_suspend,
2132 2132 .resume = vpfe_resume,
2133 2133 };
drivers/media/video/davinci/vpif_capture.c
... ... @@ -2107,7 +2107,7 @@
2107 2107 return -1;
2108 2108 }
2109 2109  
2110   -static struct dev_pm_ops vpif_dev_pm_ops = {
  2110 +static const struct dev_pm_ops vpif_dev_pm_ops = {
2111 2111 .suspend = vpif_suspend,
2112 2112 .resume = vpif_resume,
2113 2113 };
drivers/media/video/sh_mobile_ceu_camera.c
... ... @@ -1825,7 +1825,7 @@
1825 1825 return 0;
1826 1826 }
1827 1827  
1828   -static struct dev_pm_ops sh_mobile_ceu_dev_pm_ops = {
  1828 +static const struct dev_pm_ops sh_mobile_ceu_dev_pm_ops = {
1829 1829 .runtime_suspend = sh_mobile_ceu_runtime_nop,
1830 1830 .runtime_resume = sh_mobile_ceu_runtime_nop,
1831 1831 };
drivers/mmc/host/pxamci.c
... ... @@ -828,7 +828,7 @@
828 828 return ret;
829 829 }
830 830  
831   -static struct dev_pm_ops pxamci_pm_ops = {
  831 +static const struct dev_pm_ops pxamci_pm_ops = {
832 832 .suspend = pxamci_suspend,
833 833 .resume = pxamci_resume,
834 834 };
drivers/mmc/host/s3cmci.c
... ... @@ -1892,7 +1892,7 @@
1892 1892 return mmc_resume_host(mmc);
1893 1893 }
1894 1894  
1895   -static struct dev_pm_ops s3cmci_pm = {
  1895 +static const struct dev_pm_ops s3cmci_pm = {
1896 1896 .suspend = s3cmci_suspend,
1897 1897 .resume = s3cmci_resume,
1898 1898 };
drivers/mtd/nand/nomadik_nand.c
... ... @@ -216,7 +216,7 @@
216 216 return 0;
217 217 }
218 218  
219   -static struct dev_pm_ops nomadik_nand_pm_ops = {
  219 +static const struct dev_pm_ops nomadik_nand_pm_ops = {
220 220 .suspend = nomadik_nand_suspend,
221 221 .resume = nomadik_nand_resume,
222 222 };
... ... @@ -837,7 +837,7 @@
837 837 return 0;
838 838 }
839 839  
840   -static struct dev_pm_ops vortex_pm_ops = {
  840 +static const struct dev_pm_ops vortex_pm_ops = {
841 841 .suspend = vortex_suspend,
842 842 .resume = vortex_resume,
843 843 .freeze = vortex_suspend,
drivers/net/dm9000.c
... ... @@ -1646,7 +1646,7 @@
1646 1646 return 0;
1647 1647 }
1648 1648  
1649   -static struct dev_pm_ops dm9000_drv_pm_ops = {
  1649 +static const struct dev_pm_ops dm9000_drv_pm_ops = {
1650 1650 .suspend = dm9000_drv_suspend,
1651 1651 .resume = dm9000_drv_resume,
1652 1652 };
... ... @@ -4859,7 +4859,7 @@
4859 4859 return 0;
4860 4860 }
4861 4861  
4862   -static struct dev_pm_ops rtl8169_pm_ops = {
  4862 +static const struct dev_pm_ops rtl8169_pm_ops = {
4863 4863 .suspend = rtl8169_suspend,
4864 4864 .resume = rtl8169_resume,
4865 4865 .freeze = rtl8169_suspend,
drivers/net/smsc911x.c
... ... @@ -2154,7 +2154,7 @@
2154 2154 return (to == 0) ? -EIO : 0;
2155 2155 }
2156 2156  
2157   -static struct dev_pm_ops smsc911x_pm_ops = {
  2157 +static const struct dev_pm_ops smsc911x_pm_ops = {
2158 2158 .suspend = smsc911x_suspend,
2159 2159 .resume = smsc911x_resume,
2160 2160 };
drivers/net/vmxnet3/vmxnet3_drv.c
... ... @@ -2689,7 +2689,7 @@
2689 2689 return 0;
2690 2690 }
2691 2691  
2692   -static struct dev_pm_ops vmxnet3_pm_ops = {
  2692 +static const struct dev_pm_ops vmxnet3_pm_ops = {
2693 2693 .suspend = vmxnet3_suspend,
2694 2694 .resume = vmxnet3_resume,
2695 2695 };
drivers/pci/pcie/portdrv_pci.c
... ... @@ -43,7 +43,7 @@
43 43 }
44 44  
45 45 #ifdef CONFIG_PM
46   -static struct dev_pm_ops pcie_portdrv_pm_ops = {
  46 +static const struct dev_pm_ops pcie_portdrv_pm_ops = {
47 47 .suspend = pcie_port_device_suspend,
48 48 .resume = pcie_port_device_resume,
49 49 .freeze = pcie_port_device_suspend,
drivers/pcmcia/pxa2xx_base.c
... ... @@ -336,7 +336,7 @@
336 336 return pcmcia_socket_dev_resume(dev);
337 337 }
338 338  
339   -static struct dev_pm_ops pxa2xx_drv_pcmcia_pm_ops = {
  339 +static const struct dev_pm_ops pxa2xx_drv_pcmcia_pm_ops = {
340 340 .suspend = pxa2xx_drv_pcmcia_suspend,
341 341 .resume = pxa2xx_drv_pcmcia_resume,
342 342 };
drivers/pcmcia/yenta_socket.c
... ... @@ -1330,7 +1330,7 @@
1330 1330 return 0;
1331 1331 }
1332 1332  
1333   -static struct dev_pm_ops yenta_pm_ops = {
  1333 +static const struct dev_pm_ops yenta_pm_ops = {
1334 1334 .suspend_noirq = yenta_dev_suspend_noirq,
1335 1335 .resume_noirq = yenta_dev_resume_noirq,
1336 1336 .resume = yenta_dev_resume,
drivers/platform/x86/acerhdf.c
... ... @@ -460,7 +460,7 @@
460 460 return 0;
461 461 }
462 462  
463   -static struct dev_pm_ops acerhdf_pm_ops = {
  463 +static const struct dev_pm_ops acerhdf_pm_ops = {
464 464 .suspend = acerhdf_suspend,
465 465 .freeze = acerhdf_suspend,
466 466 };
drivers/platform/x86/eeepc-laptop.c
... ... @@ -154,7 +154,7 @@
154 154 static int eeepc_hotk_thaw(struct device *device);
155 155 static int eeepc_hotk_restore(struct device *device);
156 156  
157   -static struct dev_pm_ops eeepc_pm_ops = {
  157 +static const struct dev_pm_ops eeepc_pm_ops = {
158 158 .thaw = eeepc_hotk_thaw,
159 159 .restore = eeepc_hotk_restore,
160 160 };
drivers/platform/x86/hp-wmi.c
... ... @@ -94,7 +94,7 @@
94 94 static struct rfkill *bluetooth_rfkill;
95 95 static struct rfkill *wwan_rfkill;
96 96  
97   -static struct dev_pm_ops hp_wmi_pm_ops = {
  97 +static const struct dev_pm_ops hp_wmi_pm_ops = {
98 98 .resume = hp_wmi_resume_handler,
99 99 .restore = hp_wmi_resume_handler,
100 100 };
drivers/power/wm97xx_battery.c
... ... @@ -157,7 +157,7 @@
157 157 return 0;
158 158 }
159 159  
160   -static struct dev_pm_ops wm97xx_bat_pm_ops = {
  160 +static const struct dev_pm_ops wm97xx_bat_pm_ops = {
161 161 .suspend = wm97xx_bat_suspend,
162 162 .resume = wm97xx_bat_resume,
163 163 };
drivers/rtc/rtc-pxa.c
... ... @@ -456,7 +456,7 @@
456 456 return 0;
457 457 }
458 458  
459   -static struct dev_pm_ops pxa_rtc_pm_ops = {
  459 +static const struct dev_pm_ops pxa_rtc_pm_ops = {
460 460 .suspend = pxa_rtc_suspend,
461 461 .resume = pxa_rtc_resume,
462 462 };
drivers/rtc/rtc-sa1100.c
... ... @@ -407,7 +407,7 @@
407 407 return 0;
408 408 }
409 409  
410   -static struct dev_pm_ops sa1100_rtc_pm_ops = {
  410 +static const struct dev_pm_ops sa1100_rtc_pm_ops = {
411 411 .suspend = sa1100_rtc_suspend,
412 412 .resume = sa1100_rtc_resume,
413 413 };
drivers/rtc/rtc-sh.c
... ... @@ -826,7 +826,7 @@
826 826 return 0;
827 827 }
828 828  
829   -static struct dev_pm_ops sh_rtc_dev_pm_ops = {
  829 +static const struct dev_pm_ops sh_rtc_dev_pm_ops = {
830 830 .suspend = sh_rtc_suspend,
831 831 .resume = sh_rtc_resume,
832 832 };
drivers/rtc/rtc-wm831x.c
... ... @@ -485,7 +485,7 @@
485 485 return 0;
486 486 }
487 487  
488   -static struct dev_pm_ops wm831x_rtc_pm_ops = {
  488 +static const struct dev_pm_ops wm831x_rtc_pm_ops = {
489 489 .suspend = wm831x_rtc_suspend,
490 490 .resume = wm831x_rtc_resume,
491 491  
drivers/s390/block/dcssblk.c
... ... @@ -1005,7 +1005,7 @@
1005 1005 return 0;
1006 1006 }
1007 1007  
1008   -static struct dev_pm_ops dcssblk_pm_ops = {
  1008 +static const struct dev_pm_ops dcssblk_pm_ops = {
1009 1009 .freeze = dcssblk_freeze,
1010 1010 .thaw = dcssblk_thaw,
1011 1011 .restore = dcssblk_restore,
drivers/s390/block/xpram.c
... ... @@ -407,7 +407,7 @@
407 407 return 0;
408 408 }
409 409  
410   -static struct dev_pm_ops xpram_pm_ops = {
  410 +static const struct dev_pm_ops xpram_pm_ops = {
411 411 .restore = xpram_restore,
412 412 };
413 413  
drivers/s390/char/monreader.c
... ... @@ -529,7 +529,7 @@
529 529 return monreader_thaw(dev);
530 530 }
531 531  
532   -static struct dev_pm_ops monreader_pm_ops = {
  532 +static const struct dev_pm_ops monreader_pm_ops = {
533 533 .freeze = monreader_freeze,
534 534 .thaw = monreader_thaw,
535 535 .restore = monreader_restore,
drivers/s390/char/monwriter.c
... ... @@ -323,7 +323,7 @@
323 323 return monwriter_restore(dev);
324 324 }
325 325  
326   -static struct dev_pm_ops monwriter_pm_ops = {
  326 +static const struct dev_pm_ops monwriter_pm_ops = {
327 327 .freeze = monwriter_freeze,
328 328 .thaw = monwriter_thaw,
329 329 .restore = monwriter_restore,
drivers/s390/char/sclp.c
... ... @@ -1019,7 +1019,7 @@
1019 1019 return sclp_undo_suspend(SCLP_PM_EVENT_RESTORE);
1020 1020 }
1021 1021  
1022   -static struct dev_pm_ops sclp_pm_ops = {
  1022 +static const struct dev_pm_ops sclp_pm_ops = {
1023 1023 .freeze = sclp_freeze,
1024 1024 .thaw = sclp_thaw,
1025 1025 .restore = sclp_restore,
drivers/s390/char/sclp_cmd.c
... ... @@ -547,7 +547,7 @@
547 547 u32 entries[0];
548 548 } __packed;
549 549  
550   -static struct dev_pm_ops sclp_mem_pm_ops = {
  550 +static const struct dev_pm_ops sclp_mem_pm_ops = {
551 551 .freeze = sclp_mem_freeze,
552 552 };
553 553  
drivers/s390/char/vmlogrdr.c
... ... @@ -675,7 +675,7 @@
675 675 }
676 676  
677 677  
678   -static struct dev_pm_ops vmlogrdr_pm_ops = {
  678 +static const struct dev_pm_ops vmlogrdr_pm_ops = {
679 679 .prepare = vmlogrdr_pm_prepare,
680 680 };
681 681  
drivers/s390/cio/ccwgroup.c
... ... @@ -560,7 +560,7 @@
560 560 return gdrv->restore ? gdrv->restore(gdev) : 0;
561 561 }
562 562  
563   -static struct dev_pm_ops ccwgroup_pm_ops = {
  563 +static const struct dev_pm_ops ccwgroup_pm_ops = {
564 564 .prepare = ccwgroup_pm_prepare,
565 565 .complete = ccwgroup_pm_complete,
566 566 .freeze = ccwgroup_pm_freeze,
drivers/s390/cio/css.c
... ... @@ -1148,7 +1148,7 @@
1148 1148 return drv->restore ? drv->restore(sch) : 0;
1149 1149 }
1150 1150  
1151   -static struct dev_pm_ops css_pm_ops = {
  1151 +static const struct dev_pm_ops css_pm_ops = {
1152 1152 .prepare = css_pm_prepare,
1153 1153 .complete = css_pm_complete,
1154 1154 .freeze = css_pm_freeze,
drivers/s390/cio/device.c
... ... @@ -1904,7 +1904,7 @@
1904 1904 return ret;
1905 1905 }
1906 1906  
1907   -static struct dev_pm_ops ccw_pm_ops = {
  1907 +static const struct dev_pm_ops ccw_pm_ops = {
1908 1908 .prepare = ccw_device_pm_prepare,
1909 1909 .complete = ccw_device_pm_complete,
1910 1910 .freeze = ccw_device_pm_freeze,
drivers/s390/net/netiucv.c
... ... @@ -159,7 +159,7 @@
159 159 static int netiucv_pm_freeze(struct device *);
160 160 static int netiucv_pm_restore_thaw(struct device *);
161 161  
162   -static struct dev_pm_ops netiucv_pm_ops = {
  162 +static const struct dev_pm_ops netiucv_pm_ops = {
163 163 .prepare = netiucv_pm_prepare,
164 164 .complete = netiucv_pm_complete,
165 165 .freeze = netiucv_pm_freeze,
drivers/s390/net/smsgiucv.c
... ... @@ -168,7 +168,7 @@
168 168 return 0;
169 169 }
170 170  
171   -static struct dev_pm_ops smsg_pm_ops = {
  171 +static const struct dev_pm_ops smsg_pm_ops = {
172 172 .freeze = smsg_pm_freeze,
173 173 .thaw = smsg_pm_restore_thaw,
174 174 .restore = smsg_pm_restore_thaw,
drivers/serial/pxa.c
... ... @@ -756,7 +756,7 @@
756 756 return 0;
757 757 }
758 758  
759   -static struct dev_pm_ops serial_pxa_pm_ops = {
  759 +static const struct dev_pm_ops serial_pxa_pm_ops = {
760 760 .suspend = serial_pxa_suspend,
761 761 .resume = serial_pxa_resume,
762 762 };
drivers/serial/sh-sci.c
... ... @@ -1312,7 +1312,7 @@
1312 1312 return 0;
1313 1313 }
1314 1314  
1315   -static struct dev_pm_ops sci_dev_pm_ops = {
  1315 +static const struct dev_pm_ops sci_dev_pm_ops = {
1316 1316 .suspend = sci_suspend,
1317 1317 .resume = sci_resume,
1318 1318 };
drivers/spi/pxa2xx_spi.c
... ... @@ -1709,7 +1709,7 @@
1709 1709 return 0;
1710 1710 }
1711 1711  
1712   -static struct dev_pm_ops pxa2xx_spi_pm_ops = {
  1712 +static const struct dev_pm_ops pxa2xx_spi_pm_ops = {
1713 1713 .suspend = pxa2xx_spi_suspend,
1714 1714 .resume = pxa2xx_spi_resume,
1715 1715 };
drivers/spi/spi_s3c24xx.c
... ... @@ -489,7 +489,7 @@
489 489 return 0;
490 490 }
491 491  
492   -static struct dev_pm_ops s3c24xx_spi_pmops = {
  492 +static const struct dev_pm_ops s3c24xx_spi_pmops = {
493 493 .suspend = s3c24xx_spi_suspend,
494 494 .resume = s3c24xx_spi_resume,
495 495 };
drivers/uio/uio_pdrv_genirq.c
... ... @@ -210,7 +210,7 @@
210 210 return 0;
211 211 }
212 212  
213   -static struct dev_pm_ops uio_pdrv_genirq_dev_pm_ops = {
  213 +static const struct dev_pm_ops uio_pdrv_genirq_dev_pm_ops = {
214 214 .runtime_suspend = uio_pdrv_genirq_runtime_nop,
215 215 .runtime_resume = uio_pdrv_genirq_runtime_nop,
216 216 };
drivers/usb/core/hcd-pci.c
... ... @@ -363,7 +363,7 @@
363 363 return resume_common(dev, true);
364 364 }
365 365  
366   -struct dev_pm_ops usb_hcd_pci_pm_ops = {
  366 +const struct dev_pm_ops usb_hcd_pci_pm_ops = {
367 367 .suspend = hcd_pci_suspend,
368 368 .suspend_noirq = hcd_pci_suspend_noirq,
369 369 .resume_noirq = hcd_pci_resume_noirq,
drivers/usb/core/hcd.h
... ... @@ -330,7 +330,7 @@
330 330 extern void usb_hcd_pci_shutdown(struct pci_dev *dev);
331 331  
332 332 #ifdef CONFIG_PM_SLEEP
333   -extern struct dev_pm_ops usb_hcd_pci_pm_ops;
  333 +extern const struct dev_pm_ops usb_hcd_pci_pm_ops;
334 334 #endif
335 335 #endif /* CONFIG_PCI */
336 336  
drivers/usb/core/usb.c
... ... @@ -320,7 +320,7 @@
320 320 return usb_resume(dev, PMSG_RESTORE);
321 321 }
322 322  
323   -static struct dev_pm_ops usb_device_pm_ops = {
  323 +static const struct dev_pm_ops usb_device_pm_ops = {
324 324 .prepare = usb_dev_prepare,
325 325 .complete = usb_dev_complete,
326 326 .suspend = usb_dev_suspend,
drivers/usb/host/ehci-au1xxx.c
... ... @@ -297,7 +297,7 @@
297 297 return 0;
298 298 }
299 299  
300   -static struct dev_pm_ops au1xxx_ehci_pmops = {
  300 +static const struct dev_pm_ops au1xxx_ehci_pmops = {
301 301 .suspend = ehci_hcd_au1xxx_drv_suspend,
302 302 .resume = ehci_hcd_au1xxx_drv_resume,
303 303 };
drivers/usb/host/ohci-au1xxx.c
... ... @@ -294,7 +294,7 @@
294 294 return 0;
295 295 }
296 296  
297   -static struct dev_pm_ops au1xxx_ohci_pmops = {
  297 +static const struct dev_pm_ops au1xxx_ohci_pmops = {
298 298 .suspend = ohci_hcd_au1xxx_drv_suspend,
299 299 .resume = ohci_hcd_au1xxx_drv_resume,
300 300 };
drivers/usb/host/ohci-pxa27x.c
... ... @@ -518,7 +518,7 @@
518 518 return 0;
519 519 }
520 520  
521   -static struct dev_pm_ops ohci_hcd_pxa27x_pm_ops = {
  521 +static const struct dev_pm_ops ohci_hcd_pxa27x_pm_ops = {
522 522 .suspend = ohci_hcd_pxa27x_drv_suspend,
523 523 .resume = ohci_hcd_pxa27x_drv_resume,
524 524 };
drivers/usb/host/r8a66597-hcd.c
... ... @@ -2353,7 +2353,7 @@
2353 2353 return 0;
2354 2354 }
2355 2355  
2356   -static struct dev_pm_ops r8a66597_dev_pm_ops = {
  2356 +static const struct dev_pm_ops r8a66597_dev_pm_ops = {
2357 2357 .suspend = r8a66597_suspend,
2358 2358 .resume = r8a66597_resume,
2359 2359 .poweroff = r8a66597_suspend,
drivers/usb/musb/musb_core.c
... ... @@ -2214,7 +2214,7 @@
2214 2214 return 0;
2215 2215 }
2216 2216  
2217   -static struct dev_pm_ops musb_dev_pm_ops = {
  2217 +static const struct dev_pm_ops musb_dev_pm_ops = {
2218 2218 .suspend = musb_suspend,
2219 2219 .resume_noirq = musb_resume_noirq,
2220 2220 };
drivers/video/backlight/da903x_bl.c
... ... @@ -177,7 +177,7 @@
177 177 return 0;
178 178 }
179 179  
180   -static struct dev_pm_ops da903x_backlight_pm_ops = {
  180 +static const struct dev_pm_ops da903x_backlight_pm_ops = {
181 181 .suspend = da903x_backlight_suspend,
182 182 .resume = da903x_backlight_resume,
183 183 };
drivers/video/hitfb.c
... ... @@ -456,7 +456,7 @@
456 456 return 0;
457 457 }
458 458  
459   -static struct dev_pm_ops hitfb_dev_pm_ops = {
  459 +static const struct dev_pm_ops hitfb_dev_pm_ops = {
460 460 .suspend = hitfb_suspend,
461 461 .resume = hitfb_resume,
462 462 };
drivers/video/pxafb.c
... ... @@ -1667,7 +1667,7 @@
1667 1667 return 0;
1668 1668 }
1669 1669  
1670   -static struct dev_pm_ops pxafb_pm_ops = {
  1670 +static const struct dev_pm_ops pxafb_pm_ops = {
1671 1671 .suspend = pxafb_suspend,
1672 1672 .resume = pxafb_resume,
1673 1673 };
drivers/video/sh_mobile_lcdcfb.c
... ... @@ -890,7 +890,7 @@
890 890 return 0;
891 891 }
892 892  
893   -static struct dev_pm_ops sh_mobile_lcdc_dev_pm_ops = {
  893 +static const struct dev_pm_ops sh_mobile_lcdc_dev_pm_ops = {
894 894 .suspend = sh_mobile_lcdc_suspend,
895 895 .resume = sh_mobile_lcdc_resume,
896 896 .runtime_suspend = sh_mobile_lcdc_runtime_suspend,
drivers/watchdog/adx_wdt.c
... ... @@ -314,7 +314,7 @@
314 314 return 0;
315 315 }
316 316  
317   -static struct dev_pm_ops adx_wdt_pm_ops = {
  317 +static const struct dev_pm_ops adx_wdt_pm_ops = {
318 318 .suspend = adx_wdt_suspend,
319 319 .resume = adx_wdt_resume,
320 320 };
... ... @@ -219,7 +219,7 @@
219 219 * to RAM and hibernation.
220 220 */
221 221 #define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
222   -struct dev_pm_ops name = { \
  222 +const struct dev_pm_ops name = { \
223 223 .suspend = suspend_fn, \
224 224 .resume = resume_fn, \
225 225 .freeze = suspend_fn, \
... ... @@ -221,7 +221,7 @@
221 221 return 0;
222 222 }
223 223  
224   -static struct dev_pm_ops afiucv_pm_ops = {
  224 +static const struct dev_pm_ops afiucv_pm_ops = {
225 225 .prepare = afiucv_pm_prepare,
226 226 .complete = afiucv_pm_complete,
227 227 .freeze = afiucv_pm_freeze,
... ... @@ -93,7 +93,7 @@
93 93 static int iucv_pm_thaw(struct device *);
94 94 static int iucv_pm_restore(struct device *);
95 95  
96   -static struct dev_pm_ops iucv_pm_ops = {
  96 +static const struct dev_pm_ops iucv_pm_ops = {
97 97 .prepare = iucv_pm_prepare,
98 98 .complete = iucv_pm_complete,
99 99 .freeze = iucv_pm_freeze,
sound/arm/pxa2xx-ac97.c
... ... @@ -159,7 +159,7 @@
159 159 return ret;
160 160 }
161 161  
162   -static struct dev_pm_ops pxa2xx_ac97_pm_ops = {
  162 +static const struct dev_pm_ops pxa2xx_ac97_pm_ops = {
163 163 .suspend = pxa2xx_ac97_suspend,
164 164 .resume = pxa2xx_ac97_resume,
165 165 };
sound/soc/s3c24xx/s3c24xx_simtec.c
... ... @@ -312,7 +312,7 @@
312 312 return 0;
313 313 }
314 314  
315   -struct dev_pm_ops simtec_audio_pmops = {
  315 +const struct dev_pm_ops simtec_audio_pmops = {
316 316 .resume = simtec_audio_resume,
317 317 };
318 318 EXPORT_SYMBOL_GPL(simtec_audio_pmops);
sound/soc/s3c24xx/s3c24xx_simtec.h
... ... @@ -15,7 +15,7 @@
15 15 extern int simtec_audio_remove(struct platform_device *pdev);
16 16  
17 17 #ifdef CONFIG_PM
18   -extern struct dev_pm_ops simtec_audio_pmops;
  18 +extern const struct dev_pm_ops simtec_audio_pmops;
19 19 #define simtec_audio_pm &simtec_audio_pmops
20 20 #else
21 21 #define simtec_audio_pm NULL
sound/soc/soc-core.c
... ... @@ -1236,7 +1236,7 @@
1236 1236 return 0;
1237 1237 }
1238 1238  
1239   -static struct dev_pm_ops soc_pm_ops = {
  1239 +static const struct dev_pm_ops soc_pm_ops = {
1240 1240 .suspend = soc_suspend,
1241 1241 .resume = soc_resume,
1242 1242 .poweroff = soc_poweroff,