Skip to content

Commit

Permalink
const: constify remaining dev_pm_ops
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Alexey Dobriyan authored and torvalds committed Dec 15, 2009
1 parent 0ead0f8 commit 4714521
Show file tree
Hide file tree
Showing 76 changed files with 76 additions and 76 deletions.
2 changes: 1 addition & 1 deletion arch/arm/plat-omap/debug-leds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/plat-omap/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion arch/s390/appldata/appldata_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/block/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/hvc_iucv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/dma/at_hdmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dma/dw_dmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/dma/txx9dmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/applesmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-pxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-sh_mobile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/keyboard/adp5588-keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/keyboard/sh_keysc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/misc/bfin_rotary.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/misc/pcspkr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/pcap_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/davinci/vpfe_capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/davinci/vpif_capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/sh_mobile_ceu_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mmc/host/pxamci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mmc/host/s3cmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/nomadik_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/3c59x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/dm9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -4859,7 +4859,7 @@ static int rtl8169_resume(struct device *device)
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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/smsc911x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/vmxnet3/vmxnet3_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/pci/pcie/portdrv_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/pcmcia/pxa2xx_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/pcmcia/yenta_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/platform/x86/acerhdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/platform/x86/eeepc-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/platform/x86/hp-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/power/wm97xx_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-pxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-sa1100.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-sh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-wm831x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down
2 changes: 1 addition & 1 deletion drivers/s390/block/dcssblk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/s390/block/xpram.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/s390/char/monreader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/s390/char/monwriter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/s390/char/sclp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading

0 comments on commit 4714521

Please sign in to comment.