const: constify remaining dev_pm_ops
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 15 Dec 2009 02:00:08 +0000 (18:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Dec 2009 16:53:25 +0000 (08:53 -0800)
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>
76 files changed:
arch/arm/plat-omap/debug-leds.c
arch/arm/plat-omap/gpio.c
arch/s390/appldata/appldata_base.c
drivers/block/floppy.c
drivers/char/hvc_iucv.c
drivers/dma/at_hdmac.c
drivers/dma/dw_dmac.c
drivers/dma/txx9dmac.c
drivers/hwmon/applesmc.c
drivers/i2c/busses/i2c-pxa.c
drivers/i2c/busses/i2c-s3c2410.c
drivers/i2c/busses/i2c-sh_mobile.c
drivers/input/keyboard/adp5588-keys.c
drivers/input/keyboard/sh_keysc.c
drivers/input/misc/bfin_rotary.c
drivers/input/misc/pcspkr.c
drivers/input/touchscreen/pcap_ts.c
drivers/media/video/davinci/vpfe_capture.c
drivers/media/video/davinci/vpif_capture.c
drivers/media/video/sh_mobile_ceu_camera.c
drivers/mmc/host/pxamci.c
drivers/mmc/host/s3cmci.c
drivers/mtd/nand/nomadik_nand.c
drivers/net/3c59x.c
drivers/net/dm9000.c
drivers/net/r8169.c
drivers/net/smsc911x.c
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/pci/pcie/portdrv_pci.c
drivers/pcmcia/pxa2xx_base.c
drivers/pcmcia/yenta_socket.c
drivers/platform/x86/acerhdf.c
drivers/platform/x86/eeepc-laptop.c
drivers/platform/x86/hp-wmi.c
drivers/power/wm97xx_battery.c
drivers/rtc/rtc-pxa.c
drivers/rtc/rtc-sa1100.c
drivers/rtc/rtc-sh.c
drivers/rtc/rtc-wm831x.c
drivers/s390/block/dcssblk.c
drivers/s390/block/xpram.c
drivers/s390/char/monreader.c
drivers/s390/char/monwriter.c
drivers/s390/char/sclp.c
drivers/s390/char/sclp_cmd.c
drivers/s390/char/vmlogrdr.c
drivers/s390/cio/ccwgroup.c
drivers/s390/cio/css.c
drivers/s390/cio/device.c
drivers/s390/net/netiucv.c
drivers/s390/net/smsgiucv.c
drivers/serial/pxa.c
drivers/serial/sh-sci.c
drivers/spi/pxa2xx_spi.c
drivers/spi/spi_s3c24xx.c
drivers/uio/uio_pdrv_genirq.c
drivers/usb/core/hcd-pci.c
drivers/usb/core/hcd.h
drivers/usb/core/usb.c
drivers/usb/host/ehci-au1xxx.c
drivers/usb/host/ohci-au1xxx.c
drivers/usb/host/ohci-pxa27x.c
drivers/usb/host/r8a66597-hcd.c
drivers/usb/musb/musb_core.c
drivers/video/backlight/da903x_bl.c
drivers/video/hitfb.c
drivers/video/pxafb.c
drivers/video/sh_mobile_lcdcfb.c
drivers/watchdog/adx_wdt.c
include/linux/pm.h
net/iucv/af_iucv.c
net/iucv/iucv.c
sound/arm/pxa2xx-ac97.c
sound/soc/s3c24xx/s3c24xx_simtec.c
sound/soc/s3c24xx/s3c24xx_simtec.h
sound/soc/soc-core.c

index 6c768b71ad64b42268d024012e7dce5f0a366f93..53fcef7c5201b10550305cc96db32538c3f31feb 100644 (file)
@@ -293,7 +293,7 @@ static int fpga_resume_noirq(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops fpga_dev_pm_ops = {
+static const struct dev_pm_ops fpga_dev_pm_ops = {
        .suspend_noirq = fpga_suspend_noirq,
        .resume_noirq = fpga_resume_noirq,
 };
index 055160e0620e33db3c31e0d2182e27b3381d2964..04846811d0aaf83696e2b6c641785d902af7f1c5 100644 (file)
@@ -1431,7 +1431,7 @@ static int omap_mpuio_resume_noirq(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops omap_mpuio_dev_pm_ops = {
+static const struct dev_pm_ops omap_mpuio_dev_pm_ops = {
        .suspend_noirq = omap_mpuio_suspend_noirq,
        .resume_noirq = omap_mpuio_resume_noirq,
 };
index 495589950dc7daab650b316888dde9a58c98453f..5c91995b74e4b598e7eb5e974492ecb13087ff6a 100644 (file)
@@ -551,7 +551,7 @@ static int appldata_thaw(struct device *dev)
        return appldata_restore(dev);
 }
 
-static struct dev_pm_ops appldata_pm_ops = {
+static const struct dev_pm_ops appldata_pm_ops = {
        .freeze         = appldata_freeze,
        .thaw           = appldata_thaw,
        .restore        = appldata_restore,
index 5c01f747571b9fe34f54de72d5fa5f03641c17d7..d41d7f018549863391bed8adbca97ecdb3bdca20 100644 (file)
@@ -4162,7 +4162,7 @@ static int floppy_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops floppy_pm_ops = {
+static const struct dev_pm_ops floppy_pm_ops = {
        .resume = floppy_resume,
        .restore = floppy_resume,
 };
index b8a5d654d3d043e494f6bab085552ab64df24f9f..fe62bd0e17b751f55e359addc54ee4569a4f7488 100644 (file)
@@ -931,7 +931,7 @@ static struct hv_ops hvc_iucv_ops = {
 };
 
 /* Suspend / resume device operations */
-static struct dev_pm_ops hvc_iucv_pm_ops = {
+static const struct dev_pm_ops hvc_iucv_pm_ops = {
        .freeze   = hvc_iucv_pm_freeze,
        .thaw     = hvc_iucv_pm_restore_thaw,
        .restore  = hvc_iucv_pm_restore_thaw,
index c52ac9efd0bf04547cf7882259daa369a31bf0fb..f15112569c1d686b5a1f6ea9213a7fabd6065f3c 100644 (file)
@@ -1188,7 +1188,7 @@ static int at_dma_resume_noirq(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops at_dma_dev_pm_ops = {
+static const struct dev_pm_ops at_dma_dev_pm_ops = {
        .suspend_noirq = at_dma_suspend_noirq,
        .resume_noirq = at_dma_resume_noirq,
 };
index 2eea823516a7aa9797f7908074c4ec68bd564b81..285bed0fe17bbae3e672a9b4d1cebe844cb4888a 100644 (file)
@@ -1427,7 +1427,7 @@ static int dw_resume_noirq(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops dw_dev_pm_ops = {
+static const struct dev_pm_ops dw_dev_pm_ops = {
        .suspend_noirq = dw_suspend_noirq,
        .resume_noirq = dw_resume_noirq,
 };
index fb6bb64e88619a729ab9b2cd1fa4574fd29be16e..3ebc61067e548d407af798687db075ae15003385 100644 (file)
@@ -1313,7 +1313,7 @@ static int txx9dmac_resume_noirq(struct device *dev)
 
 }
 
-static struct dev_pm_ops txx9dmac_dev_pm_ops = {
+static const struct dev_pm_ops txx9dmac_dev_pm_ops = {
        .suspend_noirq = txx9dmac_suspend_noirq,
        .resume_noirq = txx9dmac_resume_noirq,
 };
index 7ea6a8f66056827970f31f13a3a3cedd135db1fd..c1605b528e8fcccfe26241efc96c138505f67839 100644 (file)
@@ -518,7 +518,7 @@ static int applesmc_pm_restore(struct device *dev)
        return applesmc_pm_resume(dev);
 }
 
-static struct dev_pm_ops applesmc_pm_ops = {
+static const struct dev_pm_ops applesmc_pm_ops = {
        .resume = applesmc_pm_resume,
        .restore = applesmc_pm_restore,
 };
index 049555777f67da5549cca3d689977809bbef0153..7647a20523a02dc01ccd58b5ed777448f00e57f6 100644 (file)
@@ -1155,7 +1155,7 @@ static int i2c_pxa_resume_noirq(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops i2c_pxa_dev_pm_ops = {
+static const struct dev_pm_ops i2c_pxa_dev_pm_ops = {
        .suspend_noirq = i2c_pxa_suspend_noirq,
        .resume_noirq = i2c_pxa_resume_noirq,
 };
index 96aafb91b69a78e482eab02d3df45dbd70a7bfc3..1d8c98613fa057c88f75b4a7bd793348c60b8da8 100644 (file)
@@ -967,7 +967,7 @@ static int s3c24xx_i2c_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops s3c24xx_i2c_dev_pm_ops = {
+static const struct dev_pm_ops s3c24xx_i2c_dev_pm_ops = {
        .suspend_noirq = s3c24xx_i2c_suspend_noirq,
        .resume = s3c24xx_i2c_resume,
 };
index 86a9d4e8147288dac1866b98588f013d4c02268b..ccc46418ef7f16b2409c28cdf7f7f8ebdb6796d4 100644 (file)
@@ -647,7 +647,7 @@ static int sh_mobile_i2c_runtime_nop(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops sh_mobile_i2c_dev_pm_ops = {
+static const struct dev_pm_ops sh_mobile_i2c_dev_pm_ops = {
        .runtime_suspend = sh_mobile_i2c_runtime_nop,
        .runtime_resume = sh_mobile_i2c_runtime_nop,
 };
index d48c808d59281b415505842ae5d1fb0ff55a51ac..1edb596d927bd885dea073593a3183fc63b45a54 100644 (file)
@@ -319,7 +319,7 @@ static int adp5588_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops adp5588_dev_pm_ops = {
+static const struct dev_pm_ops adp5588_dev_pm_ops = {
        .suspend = adp5588_suspend,
        .resume  = adp5588_resume,
 };
index 076111fc72d227e3216f94e975ea1f9eaf675dcf..8e9380bfed4097fcdc283cfc7c3532ed0e911318 100644 (file)
@@ -295,7 +295,7 @@ static int sh_keysc_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops sh_keysc_dev_pm_ops = {
+static const struct dev_pm_ops sh_keysc_dev_pm_ops = {
        .suspend = sh_keysc_suspend,
        .resume = sh_keysc_resume,
 };
index 690f3fafa03b9dd66ac4fa42d9d433addaa0b03a..61d10177fa83750b0162468956742564466e9e25 100644 (file)
@@ -247,7 +247,7 @@ static int bfin_rotary_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops bfin_rotary_pm_ops = {
+static const struct dev_pm_ops bfin_rotary_pm_ops = {
        .suspend        = bfin_rotary_suspend,
        .resume         = bfin_rotary_resume,
 };
index 21cb755a54fb925deda36db17933a0991bb0969c..ea4e1fd126516c05a67a0aa58ed27421f1f8de78 100644 (file)
@@ -127,7 +127,7 @@ static void pcspkr_shutdown(struct platform_device *dev)
        pcspkr_event(NULL, EV_SND, SND_BELL, 0);
 }
 
-static struct dev_pm_ops pcspkr_pm_ops = {
+static const struct dev_pm_ops pcspkr_pm_ops = {
        .suspend = pcspkr_suspend,
 };
 
index 67fcd33595def87293469b0caf625dccdaf8d83c..b79097e3028a10e381f1c259c78ce0259985f2f1 100644 (file)
@@ -233,7 +233,7 @@ static int pcap_ts_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops pcap_ts_pm_ops = {
+static const struct dev_pm_ops pcap_ts_pm_ops = {
        .suspend        = pcap_ts_suspend,
        .resume         = pcap_ts_resume,
 };
index 12a1b3d7132de212c49a992abce536ebea7250ed..c3916a42668e8b136e69c00244f505d75e042ee7 100644 (file)
@@ -2127,7 +2127,7 @@ vpfe_resume(struct device *dev)
        return -1;
 }
 
-static struct dev_pm_ops vpfe_dev_pm_ops = {
+static const struct dev_pm_ops vpfe_dev_pm_ops = {
        .suspend = vpfe_suspend,
        .resume = vpfe_resume,
 };
index d947ee5e4eb4b9b02d0f71ea7b2b7553a6b4fc11..78130721f578fc9bd310a92ac4b6c63771737b3d 100644 (file)
@@ -2107,7 +2107,7 @@ vpif_resume(struct device *dev)
        return -1;
 }
 
-static struct dev_pm_ops vpif_dev_pm_ops = {
+static const struct dev_pm_ops vpif_dev_pm_ops = {
        .suspend = vpif_suspend,
        .resume = vpif_resume,
 };
index a4f3472d4db87025d041d9422c5ed5ea8cd63883..961e4484d72188e724b9ffc5a4b8b30262a733ca 100644 (file)
@@ -1825,7 +1825,7 @@ static int sh_mobile_ceu_runtime_nop(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops sh_mobile_ceu_dev_pm_ops = {
+static const struct dev_pm_ops sh_mobile_ceu_dev_pm_ops = {
        .runtime_suspend = sh_mobile_ceu_runtime_nop,
        .runtime_resume = sh_mobile_ceu_runtime_nop,
 };
index bb47ff465c04d30acaeb1fc2a0463b785bb63917..0d783f3e79edf609f2297c7eaab42240d678feb0 100644 (file)
@@ -828,7 +828,7 @@ static int pxamci_resume(struct device *dev)
        return ret;
 }
 
-static struct dev_pm_ops pxamci_pm_ops = {
+static const struct dev_pm_ops pxamci_pm_ops = {
        .suspend        = pxamci_suspend,
        .resume         = pxamci_resume,
 };
index 941a4d35ef8da44cdc627bee9dde0a06a9b0455e..ec15f1bbf8b9f3fea53281080a32bbd95f7bbd00 100644 (file)
@@ -1892,7 +1892,7 @@ static int s3cmci_resume(struct device *dev)
        return mmc_resume_host(mmc);
 }
 
-static struct dev_pm_ops s3cmci_pm = {
+static const struct dev_pm_ops s3cmci_pm = {
        .suspend        = s3cmci_suspend,
        .resume         = s3cmci_resume,
 };
index 7c302d55910e6dfb8f63bcf7ac4f4a4027423180..66123419f65d4561f4912a60e68d499d9e0406e7 100644 (file)
@@ -216,7 +216,7 @@ static int nomadik_nand_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops nomadik_nand_pm_ops = {
+static const struct dev_pm_ops nomadik_nand_pm_ops = {
        .suspend = nomadik_nand_suspend,
        .resume = nomadik_nand_resume,
 };
index 78b7167a8ce36f64e07a4f7fea6703e76d27d3df..39db0e96815dfba17d6dc8cab444a8181c06da71 100644 (file)
@@ -837,7 +837,7 @@ static int vortex_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops vortex_pm_ops = {
+static const struct dev_pm_ops vortex_pm_ops = {
        .suspend = vortex_suspend,
        .resume = vortex_resume,
        .freeze = vortex_suspend,
index 0cbe3c0e7c065b181ebaa725e5f18e6711c454f8..b377300656889cd9db9a2242bcc213611798cd91 100644 (file)
@@ -1646,7 +1646,7 @@ dm9000_drv_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops dm9000_drv_pm_ops = {
+static const struct dev_pm_ops dm9000_drv_pm_ops = {
        .suspend        = dm9000_drv_suspend,
        .resume         = dm9000_drv_resume,
 };
index acfc5a3aa490b5dbe3cb9e638803946944ef0abb..60f96c468a2465e3f3b9c7d3634b4f521d153216 100644 (file)
@@ -4859,7 +4859,7 @@ out:
        return 0;
 }
 
-static struct dev_pm_ops rtl8169_pm_ops = {
+static const struct dev_pm_ops rtl8169_pm_ops = {
        .suspend = rtl8169_suspend,
        .resume = rtl8169_resume,
        .freeze = rtl8169_suspend,
index 20d6095cf4118911b6586cbf13dd85bdaaae931e..494cd91ea39c5956102eb4afee1808295d2c5d18 100644 (file)
@@ -2154,7 +2154,7 @@ static int smsc911x_resume(struct device *dev)
        return (to == 0) ? -EIO : 0;
 }
 
-static struct dev_pm_ops smsc911x_pm_ops = {
+static const struct dev_pm_ops smsc911x_pm_ops = {
        .suspend        = smsc911x_suspend,
        .resume         = smsc911x_resume,
 };
index 1ceb9d0f8b9720309beceb4a2f62581a9bf2e5f8..9cc438282d776c5e8e4d57d96f0267a15371403a 100644 (file)
@@ -2689,7 +2689,7 @@ vmxnet3_resume(struct device *device)
        return 0;
 }
 
-static struct dev_pm_ops vmxnet3_pm_ops = {
+static const struct dev_pm_ops vmxnet3_pm_ops = {
        .suspend = vmxnet3_suspend,
        .resume = vmxnet3_resume,
 };
index ce52ea34fee5513822ef903a8b27ab8d38dfb359..a49452e2aed9e932d82cd51a9570aaaf3f61c903 100644 (file)
@@ -43,7 +43,7 @@ static int pcie_portdrv_restore_config(struct pci_dev *dev)
 }
 
 #ifdef CONFIG_PM
-static struct dev_pm_ops pcie_portdrv_pm_ops = {
+static const struct dev_pm_ops pcie_portdrv_pm_ops = {
        .suspend        = pcie_port_device_suspend,
        .resume         = pcie_port_device_resume,
        .freeze         = pcie_port_device_suspend,
index da346eb7e77eba91474027329794c94ceb8cd2b7..3aabf1e379888e7bf4c025d5d779862132efa007 100644 (file)
@@ -336,7 +336,7 @@ static int pxa2xx_drv_pcmcia_resume(struct device *dev)
        return pcmcia_socket_dev_resume(dev);
 }
 
-static struct dev_pm_ops  pxa2xx_drv_pcmcia_pm_ops = {
+static const struct dev_pm_ops pxa2xx_drv_pcmcia_pm_ops = {
        .suspend        = pxa2xx_drv_pcmcia_suspend,
        .resume         = pxa2xx_drv_pcmcia_resume,
 };
index fe02cfd4b5e905673fddb4f0d9e98391d7379ce2..e4d12acdd525d2a5acb1337f52d2c3a2fc441c9e 100644 (file)
@@ -1330,7 +1330,7 @@ static int yenta_dev_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops yenta_pm_ops = {
+static const struct dev_pm_ops yenta_pm_ops = {
        .suspend_noirq = yenta_dev_suspend_noirq,
        .resume_noirq = yenta_dev_resume_noirq,
        .resume = yenta_dev_resume,
index ab64522aaa6433df3e1fcb3c2d92c5633d2c72ad..be27aa47e8101f0d55c77d3b9ff8b3d9c4a788fa 100644 (file)
@@ -460,7 +460,7 @@ static int acerhdf_remove(struct platform_device *device)
        return 0;
 }
 
-static struct dev_pm_ops acerhdf_pm_ops = {
+static const struct dev_pm_ops acerhdf_pm_ops = {
        .suspend = acerhdf_suspend,
        .freeze  = acerhdf_suspend,
 };
index 4226e535273874fb06aea0344c4c8ce00a8b957c..e647a856b9bf684d9e57a88d4b3321edb770232b 100644 (file)
@@ -154,7 +154,7 @@ static struct eeepc_hotk *ehotk;
 static int eeepc_hotk_thaw(struct device *device);
 static int eeepc_hotk_restore(struct device *device);
 
-static struct dev_pm_ops eeepc_pm_ops = {
+static const struct dev_pm_ops eeepc_pm_ops = {
        .thaw = eeepc_hotk_thaw,
        .restore = eeepc_hotk_restore,
 };
index c2842171cec6b9942c3e844954842612d5db0d20..f00a71c58e69aea037c488e5cbaf03c34ff61a7e 100644 (file)
@@ -94,7 +94,7 @@ static struct rfkill *wifi_rfkill;
 static struct rfkill *bluetooth_rfkill;
 static struct rfkill *wwan_rfkill;
 
-static struct dev_pm_ops hp_wmi_pm_ops = {
+static const struct dev_pm_ops hp_wmi_pm_ops = {
        .resume  = hp_wmi_resume_handler,
        .restore  = hp_wmi_resume_handler,
 };
index f2bfd296dbae05133134b02c05daf9df12da6fa0..fa39e759a275a2a49ef7a0ceb306c4eee9c5abbf 100644 (file)
@@ -157,7 +157,7 @@ static int wm97xx_bat_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops wm97xx_bat_pm_ops = {
+static const struct dev_pm_ops wm97xx_bat_pm_ops = {
        .suspend        = wm97xx_bat_suspend,
        .resume         = wm97xx_bat_resume,
 };
index 747ca194fad4ac2ec319eac087bda3396fa3f309..e6351b743da644cd78dd34b0cfd73b667e885cfe 100644 (file)
@@ -456,7 +456,7 @@ static int pxa_rtc_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops pxa_rtc_pm_ops = {
+static const struct dev_pm_ops pxa_rtc_pm_ops = {
        .suspend        = pxa_rtc_suspend,
        .resume         = pxa_rtc_resume,
 };
index 29f98a70586e4e677fb99373f24a62056852ea1f..e4a44b641702677ba99884f03089477f1c04f3cd 100644 (file)
@@ -407,7 +407,7 @@ static int sa1100_rtc_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops sa1100_rtc_pm_ops = {
+static const struct dev_pm_ops sa1100_rtc_pm_ops = {
        .suspend        = sa1100_rtc_suspend,
        .resume         = sa1100_rtc_resume,
 };
index e6ed5404bca0e8d32d4623bd123c6d0b8e6a1b54..e95cc6f8d61e28c035fed8d0648fd92463ed595e 100644 (file)
@@ -826,7 +826,7 @@ static int sh_rtc_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops sh_rtc_dev_pm_ops = {
+static const struct dev_pm_ops sh_rtc_dev_pm_ops = {
        .suspend = sh_rtc_suspend,
        .resume = sh_rtc_resume,
 };
index 79795cdf6ed81f9796ea914f21180f03694ac184..000c7e481e594ab8216b5c5d05098af188a9d876 100644 (file)
@@ -485,7 +485,7 @@ static int __devexit wm831x_rtc_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct dev_pm_ops wm831x_rtc_pm_ops = {
+static const struct dev_pm_ops wm831x_rtc_pm_ops = {
        .suspend = wm831x_rtc_suspend,
        .resume = wm831x_rtc_resume,
 
index f76f4bd82b9f9810e3bae0b4d914f1f8673803ab..9b43ae94beba1dea263e1687d38060e9a1f243d6 100644 (file)
@@ -1005,7 +1005,7 @@ static int dcssblk_thaw(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops dcssblk_pm_ops = {
+static const struct dev_pm_ops dcssblk_pm_ops = {
        .freeze         = dcssblk_freeze,
        .thaw           = dcssblk_thaw,
        .restore        = dcssblk_restore,
index 116d1b3eeb157093002ea32edbf7c45133dc695b..118de392af63895b98b42afc0123911f054168f5 100644 (file)
@@ -407,7 +407,7 @@ static int xpram_restore(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops xpram_pm_ops = {
+static const struct dev_pm_ops xpram_pm_ops = {
        .restore        = xpram_restore,
 };
 
index 60473f86e1f9271e6f12d1fcddcd85991d66df50..33e96484d54fd1bf5d28aeb369751eed9dbef539 100644 (file)
@@ -529,7 +529,7 @@ static int monreader_restore(struct device *dev)
        return monreader_thaw(dev);
 }
 
-static struct dev_pm_ops monreader_pm_ops = {
+static const struct dev_pm_ops monreader_pm_ops = {
        .freeze  = monreader_freeze,
        .thaw    = monreader_thaw,
        .restore = monreader_restore,
index 6532ed8b4afad0a75a2fef4037eb86c121e3f659..668a0579b26b8b7767d2fbc912c220d02d3a874b 100644 (file)
@@ -323,7 +323,7 @@ static int monwriter_thaw(struct device *dev)
        return monwriter_restore(dev);
 }
 
-static struct dev_pm_ops monwriter_pm_ops = {
+static const struct dev_pm_ops monwriter_pm_ops = {
        .freeze         = monwriter_freeze,
        .thaw           = monwriter_thaw,
        .restore        = monwriter_restore,
index a983f50867881643f06ad0b2364fc5b9cbf2bb04..ec88c59842e3532d1b3b6fde3a402a9101b18266 100644 (file)
@@ -1019,7 +1019,7 @@ static int sclp_restore(struct device *dev)
        return sclp_undo_suspend(SCLP_PM_EVENT_RESTORE);
 }
 
-static struct dev_pm_ops sclp_pm_ops = {
+static const struct dev_pm_ops sclp_pm_ops = {
        .freeze         = sclp_freeze,
        .thaw           = sclp_thaw,
        .restore        = sclp_restore,
index 28b5afc129c36be0cc2396a8f965aafef02fd108..b3beab610da445334be1818b4f8ae05e81e941ba 100644 (file)
@@ -547,7 +547,7 @@ struct read_storage_sccb {
        u32 entries[0];
 } __packed;
 
-static struct dev_pm_ops sclp_mem_pm_ops = {
+static const struct dev_pm_ops sclp_mem_pm_ops = {
        .freeze         = sclp_mem_freeze,
 };
 
index 899aa795bf38eef009cb08299b6a27b6d330fbe3..7dfa5412d5a8bc9d5c0b6ddcacffc6fe6d958981 100644 (file)
@@ -675,7 +675,7 @@ static int vmlogrdr_pm_prepare(struct device *dev)
 }
 
 
-static struct dev_pm_ops vmlogrdr_pm_ops = {
+static const struct dev_pm_ops vmlogrdr_pm_ops = {
        .prepare = vmlogrdr_pm_prepare,
 };
 
index a5a62f1f7747c66107c71ea62be654473765541f..5f97ea2ee6b19f8b6ca80ac7e70239ab2f1dca7e 100644 (file)
@@ -560,7 +560,7 @@ static int ccwgroup_pm_restore(struct device *dev)
        return gdrv->restore ? gdrv->restore(gdev) : 0;
 }
 
-static struct dev_pm_ops ccwgroup_pm_ops = {
+static const struct dev_pm_ops ccwgroup_pm_ops = {
        .prepare = ccwgroup_pm_prepare,
        .complete = ccwgroup_pm_complete,
        .freeze = ccwgroup_pm_freeze,
index 92ff88ac11072d95d8249f695212cd9ac19b27b3..7679aee6fa147af0459855a899888850752437a4 100644 (file)
@@ -1148,7 +1148,7 @@ static int css_pm_restore(struct device *dev)
        return drv->restore ? drv->restore(sch) : 0;
 }
 
-static struct dev_pm_ops css_pm_ops = {
+static const struct dev_pm_ops css_pm_ops = {
        .prepare = css_pm_prepare,
        .complete = css_pm_complete,
        .freeze = css_pm_freeze,
index 9fecfb4223a85272246b74d35d24154f86eac57c..73901c9e260ffbfaf29ec1c5c627fe53acb52db4 100644 (file)
@@ -1904,7 +1904,7 @@ out_unlock:
        return ret;
 }
 
-static struct dev_pm_ops ccw_pm_ops = {
+static const struct dev_pm_ops ccw_pm_ops = {
        .prepare = ccw_device_pm_prepare,
        .complete = ccw_device_pm_complete,
        .freeze = ccw_device_pm_freeze,
index 98c04cac43c1d87467ee60f43807c0dbc654409b..65ebee0a326674432d3e1d0e092d6afc3d02ff2b 100644 (file)
@@ -159,7 +159,7 @@ static void netiucv_pm_complete(struct device *);
 static int netiucv_pm_freeze(struct device *);
 static int netiucv_pm_restore_thaw(struct device *);
 
-static struct dev_pm_ops netiucv_pm_ops = {
+static const struct dev_pm_ops netiucv_pm_ops = {
        .prepare = netiucv_pm_prepare,
        .complete = netiucv_pm_complete,
        .freeze = netiucv_pm_freeze,
index 3012355f8304e875953a732d2ab4b4e6dde1681f..67f2485d2372512376c770031aac583201ad27d9 100644 (file)
@@ -168,7 +168,7 @@ static int smsg_pm_restore_thaw(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops smsg_pm_ops = {
+static const struct dev_pm_ops smsg_pm_ops = {
        .freeze = smsg_pm_freeze,
        .thaw = smsg_pm_restore_thaw,
        .restore = smsg_pm_restore_thaw,
index 4a821046baae0124e6bb9a36824979d49e69952e..56ee082157aaf121c755fd3a42ef4005e9667f14 100644 (file)
@@ -756,7 +756,7 @@ static int serial_pxa_resume(struct device *dev)
         return 0;
 }
 
-static struct dev_pm_ops serial_pxa_pm_ops = {
+static const struct dev_pm_ops serial_pxa_pm_ops = {
        .suspend        = serial_pxa_suspend,
        .resume         = serial_pxa_resume,
 };
index ff38dbdb5c6ecf7686371dad4a4e909eae9c52d3..7e3f4ff58cfd346768a3b5f30780357d48c2edf8 100644 (file)
@@ -1312,7 +1312,7 @@ static int sci_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops sci_dev_pm_ops = {
+static const struct dev_pm_ops sci_dev_pm_ops = {
        .suspend        = sci_suspend,
        .resume         = sci_resume,
 };
index c8c2b693ffacbb757b281f7190f02f118e4da3fc..c2f707e5ce74accbc44a4c3766a25ea2fde93272 100644 (file)
@@ -1709,7 +1709,7 @@ static int pxa2xx_spi_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops pxa2xx_spi_pm_ops = {
+static const struct dev_pm_ops pxa2xx_spi_pm_ops = {
        .suspend        = pxa2xx_spi_suspend,
        .resume         = pxa2xx_spi_resume,
 };
index 33d94f76b9ef47fd92bddd54815e72262b6dffda..276591569c8bce421f1c2c9c4b0ed94385d22f44 100644 (file)
@@ -489,7 +489,7 @@ static int s3c24xx_spi_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops s3c24xx_spi_pmops = {
+static const struct dev_pm_ops s3c24xx_spi_pmops = {
        .suspend        = s3c24xx_spi_suspend,
        .resume         = s3c24xx_spi_resume,
 };
index aa53db9f2e88309d739809adf10928fd0a6d1a57..1ef3b8fc50b33063ed3fa988dd7b7ea9740bde08 100644 (file)
@@ -210,7 +210,7 @@ static int uio_pdrv_genirq_runtime_nop(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops uio_pdrv_genirq_dev_pm_ops = {
+static const struct dev_pm_ops uio_pdrv_genirq_dev_pm_ops = {
        .runtime_suspend = uio_pdrv_genirq_runtime_nop,
        .runtime_resume = uio_pdrv_genirq_runtime_nop,
 };
index 91f2885b6ee10ca8f6ca396289e0b1ea2ee7060b..2dcf906df569440d18a0cecb9b4801dec581e77f 100644 (file)
@@ -363,7 +363,7 @@ static int hcd_pci_restore(struct device *dev)
        return resume_common(dev, true);
 }
 
-struct dev_pm_ops usb_hcd_pci_pm_ops = {
+const struct dev_pm_ops usb_hcd_pci_pm_ops = {
        .suspend        = hcd_pci_suspend,
        .suspend_noirq  = hcd_pci_suspend_noirq,
        .resume_noirq   = hcd_pci_resume_noirq,
index d8b43aee581e2d3c463efafcb396f9b8dd86a5e5..bbe2b924aae8d168f4876fff4debb7e0e1d3c96b 100644 (file)
@@ -330,7 +330,7 @@ extern void usb_hcd_pci_remove(struct pci_dev *dev);
 extern void usb_hcd_pci_shutdown(struct pci_dev *dev);
 
 #ifdef CONFIG_PM_SLEEP
-extern struct dev_pm_ops       usb_hcd_pci_pm_ops;
+extern const struct dev_pm_ops usb_hcd_pci_pm_ops;
 #endif
 #endif /* CONFIG_PCI */
 
index 4e2c6df8d3cc6b0427f3d7ffa645c0073531490e..043fa833eeca949c6f7613bec94f1433cfe42afc 100644 (file)
@@ -320,7 +320,7 @@ static int usb_dev_restore(struct device *dev)
        return usb_resume(dev, PMSG_RESTORE);
 }
 
-static struct dev_pm_ops usb_device_pm_ops = {
+static const struct dev_pm_ops usb_device_pm_ops = {
        .prepare =      usb_dev_prepare,
        .complete =     usb_dev_complete,
        .suspend =      usb_dev_suspend,
index ed77be76d6bb0102f4a6078a2b76f65d769ce1ac..dbfb482a94e37a7389c2d9c13681a5c9da408325 100644 (file)
@@ -297,7 +297,7 @@ static int ehci_hcd_au1xxx_drv_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops au1xxx_ehci_pmops = {
+static const struct dev_pm_ops au1xxx_ehci_pmops = {
        .suspend        = ehci_hcd_au1xxx_drv_suspend,
        .resume         = ehci_hcd_au1xxx_drv_resume,
 };
index e4380082ebb110a0e77a8b509da9cc72e66837d2..17a6043c1fa072cba3d84c01fe8f6ba83005fff3 100644 (file)
@@ -294,7 +294,7 @@ static int ohci_hcd_au1xxx_drv_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops au1xxx_ohci_pmops = {
+static const struct dev_pm_ops au1xxx_ohci_pmops = {
        .suspend        = ohci_hcd_au1xxx_drv_suspend,
        .resume         = ohci_hcd_au1xxx_drv_resume,
 };
index f1c06202fdf22d8630cc5647509a10c17a77bc97..a18debdd79b8cec346f7f625baf66a47800affd1 100644 (file)
@@ -518,7 +518,7 @@ static int ohci_hcd_pxa27x_drv_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops ohci_hcd_pxa27x_pm_ops = {
+static const struct dev_pm_ops ohci_hcd_pxa27x_pm_ops = {
        .suspend        = ohci_hcd_pxa27x_drv_suspend,
        .resume         = ohci_hcd_pxa27x_drv_resume,
 };
index 41dbc70ae752eaf41332807d4be86905801c47a8..b7a661c02bcdb5d3edf0a84b39a50a41f2bf411c 100644 (file)
@@ -2353,7 +2353,7 @@ static int r8a66597_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops r8a66597_dev_pm_ops = {
+static const struct dev_pm_ops r8a66597_dev_pm_ops = {
        .suspend = r8a66597_suspend,
        .resume = r8a66597_resume,
        .poweroff = r8a66597_suspend,
index 49f2346afad3e8016d5f548e6f74d57b7322d49a..bfe08f4975a391d5af4af9d1a633274005125348 100644 (file)
@@ -2214,7 +2214,7 @@ static int musb_resume_noirq(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops musb_dev_pm_ops = {
+static const struct dev_pm_ops musb_dev_pm_ops = {
        .suspend        = musb_suspend,
        .resume_noirq   = musb_resume_noirq,
 };
index 7fcb0eb54c6061d1214348c4b45f2730ec1c50b3..f2d76dae1eb370813b7c31b338aa951d45e2267b 100644 (file)
@@ -177,7 +177,7 @@ static int da903x_backlight_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops da903x_backlight_pm_ops = {
+static const struct dev_pm_ops da903x_backlight_pm_ops = {
        .suspend        = da903x_backlight_suspend,
        .resume         = da903x_backlight_resume,
 };
index e7116a6d82d306b51e7b621c1e927fdd156c31ab..73c83a8de2d37a68b35553f7dcc8e18cb5fde890 100644 (file)
@@ -456,7 +456,7 @@ static int hitfb_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops hitfb_dev_pm_ops = {
+static const struct dev_pm_ops hitfb_dev_pm_ops = {
        .suspend        = hitfb_suspend,
        .resume         = hitfb_resume,
 };
index f58a3aae6ea630f931de2a2cc7118a65a0c344b3..b7e58059b592fc402bb91c7f7fd5c6bbc703e41e 100644 (file)
@@ -1667,7 +1667,7 @@ static int pxafb_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops pxafb_pm_ops = {
+static const struct dev_pm_ops pxafb_pm_ops = {
        .suspend        = pxafb_suspend,
        .resume         = pxafb_resume,
 };
index b4b5de930cf528409bd71a5f36009a373fc83ed4..8a65fb6648a621b06568823fabef62a4d3832f4c 100644 (file)
@@ -890,7 +890,7 @@ static int sh_mobile_lcdc_runtime_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops sh_mobile_lcdc_dev_pm_ops = {
+static const struct dev_pm_ops sh_mobile_lcdc_dev_pm_ops = {
        .suspend = sh_mobile_lcdc_suspend,
        .resume = sh_mobile_lcdc_resume,
        .runtime_suspend = sh_mobile_lcdc_runtime_suspend,
index 77afb0acc50045a88a55282e8009f6b2ddd827d2..9c6594473d3b8877a1d128e1db500de1e3d3f7d2 100644 (file)
@@ -314,7 +314,7 @@ static int adx_wdt_resume(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops adx_wdt_pm_ops = {
+static const struct dev_pm_ops adx_wdt_pm_ops = {
        .suspend = adx_wdt_suspend,
        .resume = adx_wdt_resume,
 };
index 0d65934246af8c3ba0997c05059009de684b27ea..198b8f9fe05ec2ab97d351fbfba053f980869100 100644 (file)
@@ -219,7 +219,7 @@ struct dev_pm_ops {
  * to RAM and hibernation.
  */
 #define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
-struct dev_pm_ops name = { \
+const struct dev_pm_ops name = { \
        .suspend = suspend_fn, \
        .resume = resume_fn, \
        .freeze = suspend_fn, \
index 1e428863574fe280966af5f04755f87bc1a4887f..c18286a2167b9987f15dd0f765d1ed8e2aa1625b 100644 (file)
@@ -221,7 +221,7 @@ static int afiucv_pm_restore_thaw(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops afiucv_pm_ops = {
+static const struct dev_pm_ops afiucv_pm_ops = {
        .prepare = afiucv_pm_prepare,
        .complete = afiucv_pm_complete,
        .freeze = afiucv_pm_freeze,
index 3b1f5f5f8de717e79c67576df739f604ea7c3dcf..fd8b28361a6415eaf4d98251a7be40fbc478f7bc 100644 (file)
@@ -93,7 +93,7 @@ static int iucv_pm_freeze(struct device *);
 static int iucv_pm_thaw(struct device *);
 static int iucv_pm_restore(struct device *);
 
-static struct dev_pm_ops iucv_pm_ops = {
+static const struct dev_pm_ops iucv_pm_ops = {
        .prepare = iucv_pm_prepare,
        .complete = iucv_pm_complete,
        .freeze = iucv_pm_freeze,
index b4b48afb6de6087474ae6adf4f5076c4d8877d4b..5d9411839cd7494c54586380ebf6262ebb633227 100644 (file)
@@ -159,7 +159,7 @@ static int pxa2xx_ac97_resume(struct device *dev)
        return ret;
 }
 
-static struct dev_pm_ops pxa2xx_ac97_pm_ops = {
+static const struct dev_pm_ops pxa2xx_ac97_pm_ops = {
        .suspend        = pxa2xx_ac97_suspend,
        .resume         = pxa2xx_ac97_resume,
 };
index d441c3b646317799000c046b10648dc60b3cae5b..4984754f3298dac412f9ee22dfbce4de5f5804f8 100644 (file)
@@ -312,7 +312,7 @@ int simtec_audio_resume(struct device *dev)
        return 0;
 }
 
-struct dev_pm_ops simtec_audio_pmops = {
+const struct dev_pm_ops simtec_audio_pmops = {
        .resume = simtec_audio_resume,
 };
 EXPORT_SYMBOL_GPL(simtec_audio_pmops);
index 2714203af161b369c839d470e673bb500266959c..e18faee30cce0a388b2d06d2ba9a676200117d16 100644 (file)
@@ -15,7 +15,7 @@ extern int simtec_audio_core_probe(struct platform_device *pdev,
 extern int simtec_audio_remove(struct platform_device *pdev);
 
 #ifdef CONFIG_PM
-extern struct dev_pm_ops simtec_audio_pmops;
+extern const struct dev_pm_ops simtec_audio_pmops;
 #define simtec_audio_pm &simtec_audio_pmops
 #else
 #define simtec_audio_pm NULL
index ef8f28284cb900372c7bf536a4d835b6e1ab9306..0a6440c6f54a80a9af52aa10ffe9d898fe5c456d 100644 (file)
@@ -1236,7 +1236,7 @@ static int soc_poweroff(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops soc_pm_ops = {
+static const struct dev_pm_ops soc_pm_ops = {
        .suspend = soc_suspend,
        .resume = soc_resume,
        .poweroff = soc_poweroff,