aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/acpi/sleep.c4
-rw-r--r--drivers/base/power/Makefile3
-rw-r--r--drivers/net/e1000e/netdev.c8
-rw-r--r--drivers/net/pch_gbe/pch_gbe_main.c2
-rw-r--r--drivers/pci/pci-driver.c4
-rw-r--r--drivers/scsi/Makefile2
-rw-r--r--drivers/scsi/scsi_priv.h2
-rw-r--r--drivers/scsi/scsi_sysfs.c2
-rw-r--r--drivers/usb/core/hcd-pci.c4
-rw-r--r--include/acpi/acpi_bus.h2
-rw-r--r--include/linux/pm.h2
-rw-r--r--kernel/power/Kconfig5
12 files changed, 17 insertions, 23 deletions
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
index d6a8cd14de2e..8ea092fad3f6 100644
--- a/drivers/acpi/sleep.c
+++ b/drivers/acpi/sleep.c
@@ -585,7 +585,7 @@ int acpi_suspend(u32 acpi_state)
585 return -EINVAL; 585 return -EINVAL;
586} 586}
587 587
588#ifdef CONFIG_PM_OPS 588#ifdef CONFIG_PM
589/** 589/**
590 * acpi_pm_device_sleep_state - return preferred power state of ACPI device 590 * acpi_pm_device_sleep_state - return preferred power state of ACPI device
591 * in the system sleep state given by %acpi_target_sleep_state 591 * in the system sleep state given by %acpi_target_sleep_state
@@ -671,7 +671,7 @@ int acpi_pm_device_sleep_state(struct device *dev, int *d_min_p)
671 *d_min_p = d_min; 671 *d_min_p = d_min;
672 return d_max; 672 return d_max;
673} 673}
674#endif /* CONFIG_PM_OPS */ 674#endif /* CONFIG_PM */
675 675
676#ifdef CONFIG_PM_SLEEP 676#ifdef CONFIG_PM_SLEEP
677/** 677/**
diff --git a/drivers/base/power/Makefile b/drivers/base/power/Makefile
index abe46edfe5b4..118c1b92a511 100644
--- a/drivers/base/power/Makefile
+++ b/drivers/base/power/Makefile
@@ -1,7 +1,6 @@
1obj-$(CONFIG_PM) += sysfs.o 1obj-$(CONFIG_PM) += sysfs.o generic_ops.o
2obj-$(CONFIG_PM_SLEEP) += main.o wakeup.o 2obj-$(CONFIG_PM_SLEEP) += main.o wakeup.o
3obj-$(CONFIG_PM_RUNTIME) += runtime.o 3obj-$(CONFIG_PM_RUNTIME) += runtime.o
4obj-$(CONFIG_PM_OPS) += generic_ops.o
5obj-$(CONFIG_PM_TRACE_RTC) += trace.o 4obj-$(CONFIG_PM_TRACE_RTC) += trace.o
6obj-$(CONFIG_PM_OPP) += opp.o 5obj-$(CONFIG_PM_OPP) += opp.o
7 6
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 2e5022849f18..6d513a383340 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -5338,7 +5338,7 @@ void e1000e_disable_aspm(struct pci_dev *pdev, u16 state)
5338 __e1000e_disable_aspm(pdev, state); 5338 __e1000e_disable_aspm(pdev, state);
5339} 5339}
5340 5340
5341#ifdef CONFIG_PM_OPS 5341#ifdef CONFIG_PM
5342static bool e1000e_pm_ready(struct e1000_adapter *adapter) 5342static bool e1000e_pm_ready(struct e1000_adapter *adapter)
5343{ 5343{
5344 return !!adapter->tx_ring->buffer_info; 5344 return !!adapter->tx_ring->buffer_info;
@@ -5489,7 +5489,7 @@ static int e1000_runtime_resume(struct device *dev)
5489 return __e1000_resume(pdev); 5489 return __e1000_resume(pdev);
5490} 5490}
5491#endif /* CONFIG_PM_RUNTIME */ 5491#endif /* CONFIG_PM_RUNTIME */
5492#endif /* CONFIG_PM_OPS */ 5492#endif /* CONFIG_PM */
5493 5493
5494static void e1000_shutdown(struct pci_dev *pdev) 5494static void e1000_shutdown(struct pci_dev *pdev)
5495{ 5495{
@@ -6196,7 +6196,7 @@ static DEFINE_PCI_DEVICE_TABLE(e1000_pci_tbl) = {
6196}; 6196};
6197MODULE_DEVICE_TABLE(pci, e1000_pci_tbl); 6197MODULE_DEVICE_TABLE(pci, e1000_pci_tbl);
6198 6198
6199#ifdef CONFIG_PM_OPS 6199#ifdef CONFIG_PM
6200static const struct dev_pm_ops e1000_pm_ops = { 6200static const struct dev_pm_ops e1000_pm_ops = {
6201 SET_SYSTEM_SLEEP_PM_OPS(e1000_suspend, e1000_resume) 6201 SET_SYSTEM_SLEEP_PM_OPS(e1000_suspend, e1000_resume)
6202 SET_RUNTIME_PM_OPS(e1000_runtime_suspend, 6202 SET_RUNTIME_PM_OPS(e1000_runtime_suspend,
@@ -6210,7 +6210,7 @@ static struct pci_driver e1000_driver = {
6210 .id_table = e1000_pci_tbl, 6210 .id_table = e1000_pci_tbl,
6211 .probe = e1000_probe, 6211 .probe = e1000_probe,
6212 .remove = __devexit_p(e1000_remove), 6212 .remove = __devexit_p(e1000_remove),
6213#ifdef CONFIG_PM_OPS 6213#ifdef CONFIG_PM
6214 .driver.pm = &e1000_pm_ops, 6214 .driver.pm = &e1000_pm_ops,
6215#endif 6215#endif
6216 .shutdown = e1000_shutdown, 6216 .shutdown = e1000_shutdown,
diff --git a/drivers/net/pch_gbe/pch_gbe_main.c b/drivers/net/pch_gbe/pch_gbe_main.c
index b99e90aca37d..8c66e22c3a0a 100644
--- a/drivers/net/pch_gbe/pch_gbe_main.c
+++ b/drivers/net/pch_gbe/pch_gbe_main.c
@@ -2446,7 +2446,7 @@ static struct pci_driver pch_gbe_pcidev = {
2446 .id_table = pch_gbe_pcidev_id, 2446 .id_table = pch_gbe_pcidev_id,
2447 .probe = pch_gbe_probe, 2447 .probe = pch_gbe_probe,
2448 .remove = pch_gbe_remove, 2448 .remove = pch_gbe_remove,
2449#ifdef CONFIG_PM_OPS 2449#ifdef CONFIG_PM
2450 .driver.pm = &pch_gbe_pm_ops, 2450 .driver.pm = &pch_gbe_pm_ops,
2451#endif 2451#endif
2452 .shutdown = pch_gbe_shutdown, 2452 .shutdown = pch_gbe_shutdown,
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
index 88246dd46452..d86ea8b01137 100644
--- a/drivers/pci/pci-driver.c
+++ b/drivers/pci/pci-driver.c
@@ -431,7 +431,7 @@ static void pci_device_shutdown(struct device *dev)
431 pci_msix_shutdown(pci_dev); 431 pci_msix_shutdown(pci_dev);
432} 432}
433 433
434#ifdef CONFIG_PM_OPS 434#ifdef CONFIG_PM
435 435
436/* Auxiliary functions used for system resume and run-time resume. */ 436/* Auxiliary functions used for system resume and run-time resume. */
437 437
@@ -1059,7 +1059,7 @@ static int pci_pm_runtime_idle(struct device *dev)
1059 1059
1060#endif /* !CONFIG_PM_RUNTIME */ 1060#endif /* !CONFIG_PM_RUNTIME */
1061 1061
1062#ifdef CONFIG_PM_OPS 1062#ifdef CONFIG_PM
1063 1063
1064const struct dev_pm_ops pci_dev_pm_ops = { 1064const struct dev_pm_ops pci_dev_pm_ops = {
1065 .prepare = pci_pm_prepare, 1065 .prepare = pci_pm_prepare,
diff --git a/drivers/scsi/Makefile b/drivers/scsi/Makefile
index 2e9a87e8e7d8..ef6de669424b 100644
--- a/drivers/scsi/Makefile
+++ b/drivers/scsi/Makefile
@@ -165,7 +165,7 @@ scsi_mod-$(CONFIG_SCSI_NETLINK) += scsi_netlink.o
165scsi_mod-$(CONFIG_SYSCTL) += scsi_sysctl.o 165scsi_mod-$(CONFIG_SYSCTL) += scsi_sysctl.o
166scsi_mod-$(CONFIG_SCSI_PROC_FS) += scsi_proc.o 166scsi_mod-$(CONFIG_SCSI_PROC_FS) += scsi_proc.o
167scsi_mod-y += scsi_trace.o 167scsi_mod-y += scsi_trace.o
168scsi_mod-$(CONFIG_PM_OPS) += scsi_pm.o 168scsi_mod-$(CONFIG_PM) += scsi_pm.o
169 169
170scsi_tgt-y += scsi_tgt_lib.o scsi_tgt_if.o 170scsi_tgt-y += scsi_tgt_lib.o scsi_tgt_if.o
171 171
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h
index b4056d14f812..342ee1a9c41d 100644
--- a/drivers/scsi/scsi_priv.h
+++ b/drivers/scsi/scsi_priv.h
@@ -146,7 +146,7 @@ static inline void scsi_netlink_exit(void) {}
146#endif 146#endif
147 147
148/* scsi_pm.c */ 148/* scsi_pm.c */
149#ifdef CONFIG_PM_OPS 149#ifdef CONFIG_PM
150extern const struct dev_pm_ops scsi_bus_pm_ops; 150extern const struct dev_pm_ops scsi_bus_pm_ops;
151#endif 151#endif
152#ifdef CONFIG_PM_RUNTIME 152#ifdef CONFIG_PM_RUNTIME
diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c
index 490ce213204e..e44ff64233fd 100644
--- a/drivers/scsi/scsi_sysfs.c
+++ b/drivers/scsi/scsi_sysfs.c
@@ -383,7 +383,7 @@ struct bus_type scsi_bus_type = {
383 .name = "scsi", 383 .name = "scsi",
384 .match = scsi_bus_match, 384 .match = scsi_bus_match,
385 .uevent = scsi_bus_uevent, 385 .uevent = scsi_bus_uevent,
386#ifdef CONFIG_PM_OPS 386#ifdef CONFIG_PM
387 .pm = &scsi_bus_pm_ops, 387 .pm = &scsi_bus_pm_ops,
388#endif 388#endif
389}; 389};
diff --git a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c
index f71e8e307e0f..64a035ba2eab 100644
--- a/drivers/usb/core/hcd-pci.c
+++ b/drivers/usb/core/hcd-pci.c
@@ -335,7 +335,7 @@ void usb_hcd_pci_shutdown(struct pci_dev *dev)
335} 335}
336EXPORT_SYMBOL_GPL(usb_hcd_pci_shutdown); 336EXPORT_SYMBOL_GPL(usb_hcd_pci_shutdown);
337 337
338#ifdef CONFIG_PM_OPS 338#ifdef CONFIG_PM
339 339
340#ifdef CONFIG_PPC_PMAC 340#ifdef CONFIG_PPC_PMAC
341static void powermac_set_asic(struct pci_dev *pci_dev, int enable) 341static void powermac_set_asic(struct pci_dev *pci_dev, int enable)
@@ -580,4 +580,4 @@ const struct dev_pm_ops usb_hcd_pci_pm_ops = {
580}; 580};
581EXPORT_SYMBOL_GPL(usb_hcd_pci_pm_ops); 581EXPORT_SYMBOL_GPL(usb_hcd_pci_pm_ops);
582 582
583#endif /* CONFIG_PM_OPS */ 583#endif /* CONFIG_PM */
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 78ca429929f7..ff103ba96b78 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -381,7 +381,7 @@ struct acpi_pci_root *acpi_pci_find_root(acpi_handle handle);
381int acpi_enable_wakeup_device_power(struct acpi_device *dev, int state); 381int acpi_enable_wakeup_device_power(struct acpi_device *dev, int state);
382int acpi_disable_wakeup_device_power(struct acpi_device *dev); 382int acpi_disable_wakeup_device_power(struct acpi_device *dev);
383 383
384#ifdef CONFIG_PM_OPS 384#ifdef CONFIG_PM
385int acpi_pm_device_sleep_state(struct device *, int *); 385int acpi_pm_device_sleep_state(struct device *, int *);
386#else 386#else
387static inline int acpi_pm_device_sleep_state(struct device *d, int *p) 387static inline int acpi_pm_device_sleep_state(struct device *d, int *p)
diff --git a/include/linux/pm.h b/include/linux/pm.h
index 21415cc91cbb..9279175a4557 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -267,7 +267,7 @@ const struct dev_pm_ops name = { \
267 * callbacks provided by device drivers supporting both the system sleep PM and 267 * callbacks provided by device drivers supporting both the system sleep PM and
268 * runtime PM, make the pm member point to generic_subsys_pm_ops. 268 * runtime PM, make the pm member point to generic_subsys_pm_ops.
269 */ 269 */
270#ifdef CONFIG_PM_OPS 270#ifdef CONFIG_PM
271extern struct dev_pm_ops generic_subsys_pm_ops; 271extern struct dev_pm_ops generic_subsys_pm_ops;
272#define GENERIC_SUBSYS_PM_OPS (&generic_subsys_pm_ops) 272#define GENERIC_SUBSYS_PM_OPS (&generic_subsys_pm_ops)
273#else 273#else
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
index 1e4d9238c5da..0710beead05b 100644
--- a/kernel/power/Kconfig
+++ b/kernel/power/Kconfig
@@ -220,11 +220,6 @@ config APM_EMULATION
220 anything, try disabling/enabling this option (or disabling/enabling 220 anything, try disabling/enabling this option (or disabling/enabling
221 APM in your BIOS). 221 APM in your BIOS).
222 222
223config PM_OPS
224 bool
225 depends on PM_SLEEP || PM_RUNTIME
226 default y
227
228config ARCH_HAS_OPP 223config ARCH_HAS_OPP
229 bool 224 bool
230 225