diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-12-18 12:44:05 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-12-18 12:44:05 -0500 |
commit | 035f10ee4e978db0a01d0f832e328b4a62f8310e (patch) | |
tree | f9c8e95958c24450c37c27b789ac84513b6c6ff1 | |
parent | 0a0666428680c4a68d050491d5323a2ef05e08a7 (diff) | |
parent | f2ea5e1708da1bd7cb11c2cd967071e23ec9e347 (diff) |
Merge branch 'pm-runtime'
* pm-runtime:
power / PM: Eliminate CONFIG_PM_RUNTIME
NFC / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
SCSI / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
tracing / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
x86 / PM: Replace CONFIG_PM_RUNTIME in io_apic.c
PM: Remove the SET_PM_RUNTIME_PM_OPS() macro
mmc: atmel-mci: use SET_RUNTIME_PM_OPS() macro
PM / Kconfig: Replace PM_RUNTIME with PM in dependencies
ARM / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
phy / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
video / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
tty / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
spi: Replace CONFIG_PM_RUNTIME with CONFIG_PM
53 files changed, 68 insertions, 97 deletions
diff --git a/arch/arm/kernel/perf_event.c b/arch/arm/kernel/perf_event.c index e34934f63a49..f7c65adaa428 100644 --- a/arch/arm/kernel/perf_event.c +++ b/arch/arm/kernel/perf_event.c | |||
@@ -484,7 +484,7 @@ static void armpmu_disable(struct pmu *pmu) | |||
484 | armpmu->stop(armpmu); | 484 | armpmu->stop(armpmu); |
485 | } | 485 | } |
486 | 486 | ||
487 | #ifdef CONFIG_PM_RUNTIME | 487 | #ifdef CONFIG_PM |
488 | static int armpmu_runtime_resume(struct device *dev) | 488 | static int armpmu_runtime_resume(struct device *dev) |
489 | { | 489 | { |
490 | struct arm_pmu_platdata *plat = dev_get_platdata(dev); | 490 | struct arm_pmu_platdata *plat = dev_get_platdata(dev); |
diff --git a/arch/arm/mach-davinci/pm_domain.c b/arch/arm/mach-davinci/pm_domain.c index 6b98413cebd6..641edc313938 100644 --- a/arch/arm/mach-davinci/pm_domain.c +++ b/arch/arm/mach-davinci/pm_domain.c | |||
@@ -14,7 +14,7 @@ | |||
14 | #include <linux/pm_clock.h> | 14 | #include <linux/pm_clock.h> |
15 | #include <linux/platform_device.h> | 15 | #include <linux/platform_device.h> |
16 | 16 | ||
17 | #ifdef CONFIG_PM_RUNTIME | 17 | #ifdef CONFIG_PM |
18 | static int davinci_pm_runtime_suspend(struct device *dev) | 18 | static int davinci_pm_runtime_suspend(struct device *dev) |
19 | { | 19 | { |
20 | int ret; | 20 | int ret; |
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index b9e3f1c61baf..bb9c56e44a7b 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig | |||
@@ -21,7 +21,7 @@ menuconfig ARCH_EXYNOS | |||
21 | select HAVE_S3C_RTC if RTC_CLASS | 21 | select HAVE_S3C_RTC if RTC_CLASS |
22 | select PINCTRL | 22 | select PINCTRL |
23 | select PINCTRL_EXYNOS | 23 | select PINCTRL_EXYNOS |
24 | select PM_GENERIC_DOMAINS if PM_RUNTIME | 24 | select PM_GENERIC_DOMAINS if PM |
25 | select S5P_DEV_MFC | 25 | select S5P_DEV_MFC |
26 | select SRAM | 26 | select SRAM |
27 | select MFD_SYSCON | 27 | select MFD_SYSCON |
diff --git a/arch/arm/mach-keystone/pm_domain.c b/arch/arm/mach-keystone/pm_domain.c index ca79ddac38bc..ef6041e7e675 100644 --- a/arch/arm/mach-keystone/pm_domain.c +++ b/arch/arm/mach-keystone/pm_domain.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <linux/clk-provider.h> | 19 | #include <linux/clk-provider.h> |
20 | #include <linux/of.h> | 20 | #include <linux/of.h> |
21 | 21 | ||
22 | #ifdef CONFIG_PM_RUNTIME | 22 | #ifdef CONFIG_PM |
23 | static int keystone_pm_runtime_suspend(struct device *dev) | 23 | static int keystone_pm_runtime_suspend(struct device *dev) |
24 | { | 24 | { |
25 | int ret; | 25 | int ret; |
diff --git a/arch/arm/mach-omap1/pm_bus.c b/arch/arm/mach-omap1/pm_bus.c index 3f2d39672393..c40e209de65c 100644 --- a/arch/arm/mach-omap1/pm_bus.c +++ b/arch/arm/mach-omap1/pm_bus.c | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | #include "soc.h" | 22 | #include "soc.h" |
23 | 23 | ||
24 | #ifdef CONFIG_PM_RUNTIME | 24 | #ifdef CONFIG_PM |
25 | static int omap1_pm_runtime_suspend(struct device *dev) | 25 | static int omap1_pm_runtime_suspend(struct device *dev) |
26 | { | 26 | { |
27 | int ret; | 27 | int ret; |
@@ -59,7 +59,7 @@ static struct dev_pm_domain default_pm_domain = { | |||
59 | #define OMAP1_PM_DOMAIN (&default_pm_domain) | 59 | #define OMAP1_PM_DOMAIN (&default_pm_domain) |
60 | #else | 60 | #else |
61 | #define OMAP1_PM_DOMAIN NULL | 61 | #define OMAP1_PM_DOMAIN NULL |
62 | #endif /* CONFIG_PM_RUNTIME */ | 62 | #endif /* CONFIG_PM */ |
63 | 63 | ||
64 | static struct pm_clk_notifier_block platform_bus_notifier = { | 64 | static struct pm_clk_notifier_block platform_bus_notifier = { |
65 | .pm_domain = OMAP1_PM_DOMAIN, | 65 | .pm_domain = OMAP1_PM_DOMAIN, |
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 4fc838354e31..a1bd6affb508 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -361,7 +361,7 @@ static void __init omap_hwmod_init_postsetup(void) | |||
361 | u8 postsetup_state; | 361 | u8 postsetup_state; |
362 | 362 | ||
363 | /* Set the default postsetup state for all hwmods */ | 363 | /* Set the default postsetup state for all hwmods */ |
364 | #ifdef CONFIG_PM_RUNTIME | 364 | #ifdef CONFIG_PM |
365 | postsetup_state = _HWMOD_STATE_IDLE; | 365 | postsetup_state = _HWMOD_STATE_IDLE; |
366 | #else | 366 | #else |
367 | postsetup_state = _HWMOD_STATE_ENABLED; | 367 | postsetup_state = _HWMOD_STATE_ENABLED; |
diff --git a/arch/arm/mach-omap2/omap_device.c b/arch/arm/mach-omap2/omap_device.c index 8c58b71c2727..be9541e18650 100644 --- a/arch/arm/mach-omap2/omap_device.c +++ b/arch/arm/mach-omap2/omap_device.c | |||
@@ -588,7 +588,7 @@ odbs_exit: | |||
588 | return ERR_PTR(ret); | 588 | return ERR_PTR(ret); |
589 | } | 589 | } |
590 | 590 | ||
591 | #ifdef CONFIG_PM_RUNTIME | 591 | #ifdef CONFIG_PM |
592 | static int _od_runtime_suspend(struct device *dev) | 592 | static int _od_runtime_suspend(struct device *dev) |
593 | { | 593 | { |
594 | struct platform_device *pdev = to_platform_device(dev); | 594 | struct platform_device *pdev = to_platform_device(dev); |
diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig index 536d13b0bea6..ce9531ed44db 100644 --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig | |||
@@ -232,7 +232,7 @@ config IA64_SGI_UV | |||
232 | config IA64_HP_SIM | 232 | config IA64_HP_SIM |
233 | bool "Ski-simulator" | 233 | bool "Ski-simulator" |
234 | select SWIOTLB | 234 | select SWIOTLB |
235 | depends on !PM_RUNTIME | 235 | depends on !PM |
236 | 236 | ||
237 | endchoice | 237 | endchoice |
238 | 238 | ||
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index 7ffe0a2b870f..a6745e756729 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c | |||
@@ -3968,7 +3968,7 @@ bool mp_should_keep_irq(struct device *dev) | |||
3968 | { | 3968 | { |
3969 | if (dev->power.is_prepared) | 3969 | if (dev->power.is_prepared) |
3970 | return true; | 3970 | return true; |
3971 | #ifdef CONFIG_PM_RUNTIME | 3971 | #ifdef CONFIG_PM |
3972 | if (dev->power.runtime_status == RPM_SUSPENDING) | 3972 | if (dev->power.runtime_status == RPM_SUSPENDING) |
3973 | return true; | 3973 | return true; |
3974 | #endif | 3974 | #endif |
diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index cd4cccbfd2ab..a3a13605a9c4 100644 --- a/drivers/ata/Kconfig +++ b/drivers/ata/Kconfig | |||
@@ -61,7 +61,7 @@ config ATA_ACPI | |||
61 | 61 | ||
62 | config SATA_ZPODD | 62 | config SATA_ZPODD |
63 | bool "SATA Zero Power Optical Disc Drive (ZPODD) support" | 63 | bool "SATA Zero Power Optical Disc Drive (ZPODD) support" |
64 | depends on ATA_ACPI && PM_RUNTIME | 64 | depends on ATA_ACPI && PM |
65 | default n | 65 | default n |
66 | help | 66 | help |
67 | This option adds support for SATA Zero Power Optical Disc | 67 | This option adds support for SATA Zero Power Optical Disc |
diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index 3aac88f1d54a..1412c3edd5a2 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig | |||
@@ -112,7 +112,7 @@ config VIDEO_OMAP3_DEBUG | |||
112 | config VIDEO_S3C_CAMIF | 112 | config VIDEO_S3C_CAMIF |
113 | tristate "Samsung S3C24XX/S3C64XX SoC Camera Interface driver" | 113 | tristate "Samsung S3C24XX/S3C64XX SoC Camera Interface driver" |
114 | depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API | 114 | depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API |
115 | depends on PM_RUNTIME | 115 | depends on PM |
116 | depends on ARCH_S3C64XX || PLAT_S3C24XX || COMPILE_TEST | 116 | depends on ARCH_S3C64XX || PLAT_S3C24XX || COMPILE_TEST |
117 | depends on HAS_DMA | 117 | depends on HAS_DMA |
118 | select VIDEOBUF2_DMA_CONTIG | 118 | select VIDEOBUF2_DMA_CONTIG |
diff --git a/drivers/media/platform/s5p-tv/Kconfig b/drivers/media/platform/s5p-tv/Kconfig index beb180e71ba0..5a1835dd65e8 100644 --- a/drivers/media/platform/s5p-tv/Kconfig +++ b/drivers/media/platform/s5p-tv/Kconfig | |||
@@ -8,7 +8,7 @@ | |||
8 | 8 | ||
9 | config VIDEO_SAMSUNG_S5P_TV | 9 | config VIDEO_SAMSUNG_S5P_TV |
10 | bool "Samsung TV driver for S5P platform" | 10 | bool "Samsung TV driver for S5P platform" |
11 | depends on PM_RUNTIME | 11 | depends on PM |
12 | depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST | 12 | depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST |
13 | default n | 13 | default n |
14 | ---help--- | 14 | ---help--- |
diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index 62aba9af19f4..03d7c7521d97 100644 --- a/drivers/mmc/host/atmel-mci.c +++ b/drivers/mmc/host/atmel-mci.c | |||
@@ -2561,7 +2561,7 @@ static int atmci_runtime_resume(struct device *dev) | |||
2561 | static const struct dev_pm_ops atmci_dev_pm_ops = { | 2561 | static const struct dev_pm_ops atmci_dev_pm_ops = { |
2562 | SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, | 2562 | SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, |
2563 | pm_runtime_force_resume) | 2563 | pm_runtime_force_resume) |
2564 | SET_PM_RUNTIME_PM_OPS(atmci_runtime_suspend, atmci_runtime_resume, NULL) | 2564 | SET_RUNTIME_PM_OPS(atmci_runtime_suspend, atmci_runtime_resume, NULL) |
2565 | }; | 2565 | }; |
2566 | 2566 | ||
2567 | static struct platform_driver atmci_driver = { | 2567 | static struct platform_driver atmci_driver = { |
diff --git a/drivers/nfc/trf7970a.c b/drivers/nfc/trf7970a.c index d2ccd2890647..aa6a333b2ead 100644 --- a/drivers/nfc/trf7970a.c +++ b/drivers/nfc/trf7970a.c | |||
@@ -2154,7 +2154,7 @@ static int trf7970a_resume(struct device *dev) | |||
2154 | } | 2154 | } |
2155 | #endif | 2155 | #endif |
2156 | 2156 | ||
2157 | #ifdef CONFIG_PM_RUNTIME | 2157 | #ifdef CONFIG_PM |
2158 | static int trf7970a_pm_runtime_suspend(struct device *dev) | 2158 | static int trf7970a_pm_runtime_suspend(struct device *dev) |
2159 | { | 2159 | { |
2160 | struct spi_device *spi = container_of(dev, struct spi_device, dev); | 2160 | struct spi_device *spi = container_of(dev, struct spi_device, dev); |
diff --git a/drivers/phy/phy-omap-usb2.c b/drivers/phy/phy-omap-usb2.c index f091576b6449..48990e735759 100644 --- a/drivers/phy/phy-omap-usb2.c +++ b/drivers/phy/phy-omap-usb2.c | |||
@@ -322,7 +322,7 @@ static int omap_usb2_remove(struct platform_device *pdev) | |||
322 | return 0; | 322 | return 0; |
323 | } | 323 | } |
324 | 324 | ||
325 | #ifdef CONFIG_PM_RUNTIME | 325 | #ifdef CONFIG_PM |
326 | 326 | ||
327 | static int omap_usb2_runtime_suspend(struct device *dev) | 327 | static int omap_usb2_runtime_suspend(struct device *dev) |
328 | { | 328 | { |
diff --git a/drivers/phy/phy-ti-pipe3.c b/drivers/phy/phy-ti-pipe3.c index ab1e22d9a1e8..7c66922b2f93 100644 --- a/drivers/phy/phy-ti-pipe3.c +++ b/drivers/phy/phy-ti-pipe3.c | |||
@@ -423,7 +423,7 @@ static int ti_pipe3_remove(struct platform_device *pdev) | |||
423 | return 0; | 423 | return 0; |
424 | } | 424 | } |
425 | 425 | ||
426 | #ifdef CONFIG_PM_RUNTIME | 426 | #ifdef CONFIG_PM |
427 | 427 | ||
428 | static int ti_pipe3_runtime_suspend(struct device *dev) | 428 | static int ti_pipe3_runtime_suspend(struct device *dev) |
429 | { | 429 | { |
diff --git a/drivers/power/pm2301_charger.c b/drivers/power/pm2301_charger.c index 62c15af58c9a..777324992c59 100644 --- a/drivers/power/pm2301_charger.c +++ b/drivers/power/pm2301_charger.c | |||
@@ -951,8 +951,6 @@ static int pm2xxx_wall_charger_suspend(struct device *dev) | |||
951 | 951 | ||
952 | #endif | 952 | #endif |
953 | 953 | ||
954 | #ifdef CONFIG_PM_RUNTIME | ||
955 | |||
956 | static int pm2xxx_runtime_suspend(struct device *dev) | 954 | static int pm2xxx_runtime_suspend(struct device *dev) |
957 | { | 955 | { |
958 | struct i2c_client *pm2xxx_i2c_client = to_i2c_client(dev); | 956 | struct i2c_client *pm2xxx_i2c_client = to_i2c_client(dev); |
@@ -977,8 +975,6 @@ static int pm2xxx_runtime_resume(struct device *dev) | |||
977 | return 0; | 975 | return 0; |
978 | } | 976 | } |
979 | 977 | ||
980 | #endif | ||
981 | |||
982 | static const struct dev_pm_ops pm2xxx_pm_ops = { | 978 | static const struct dev_pm_ops pm2xxx_pm_ops = { |
983 | SET_SYSTEM_SLEEP_PM_OPS(pm2xxx_wall_charger_suspend, | 979 | SET_SYSTEM_SLEEP_PM_OPS(pm2xxx_wall_charger_suspend, |
984 | pm2xxx_wall_charger_resume) | 980 | pm2xxx_wall_charger_resume) |
diff --git a/drivers/scsi/scsi_pm.c b/drivers/scsi/scsi_pm.c index 7454498c4091..9e43ae1d2163 100644 --- a/drivers/scsi/scsi_pm.c +++ b/drivers/scsi/scsi_pm.c | |||
@@ -213,8 +213,6 @@ static int scsi_bus_restore(struct device *dev) | |||
213 | 213 | ||
214 | #endif /* CONFIG_PM_SLEEP */ | 214 | #endif /* CONFIG_PM_SLEEP */ |
215 | 215 | ||
216 | #ifdef CONFIG_PM_RUNTIME | ||
217 | |||
218 | static int sdev_runtime_suspend(struct device *dev) | 216 | static int sdev_runtime_suspend(struct device *dev) |
219 | { | 217 | { |
220 | const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; | 218 | const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; |
@@ -332,14 +330,6 @@ void scsi_autopm_put_host(struct Scsi_Host *shost) | |||
332 | pm_runtime_put_sync(&shost->shost_gendev); | 330 | pm_runtime_put_sync(&shost->shost_gendev); |
333 | } | 331 | } |
334 | 332 | ||
335 | #else | ||
336 | |||
337 | #define scsi_runtime_suspend NULL | ||
338 | #define scsi_runtime_resume NULL | ||
339 | #define scsi_runtime_idle NULL | ||
340 | |||
341 | #endif /* CONFIG_PM_RUNTIME */ | ||
342 | |||
343 | const struct dev_pm_ops scsi_bus_pm_ops = { | 333 | const struct dev_pm_ops scsi_bus_pm_ops = { |
344 | .prepare = scsi_bus_prepare, | 334 | .prepare = scsi_bus_prepare, |
345 | .suspend = scsi_bus_suspend, | 335 | .suspend = scsi_bus_suspend, |
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h index 2dc4a83fb84c..e3902fc66278 100644 --- a/drivers/scsi/scsi_priv.h +++ b/drivers/scsi/scsi_priv.h | |||
@@ -155,8 +155,7 @@ static inline void scsi_netlink_exit(void) {} | |||
155 | /* scsi_pm.c */ | 155 | /* scsi_pm.c */ |
156 | #ifdef CONFIG_PM | 156 | #ifdef CONFIG_PM |
157 | extern const struct dev_pm_ops scsi_bus_pm_ops; | 157 | extern const struct dev_pm_ops scsi_bus_pm_ops; |
158 | #endif | 158 | |
159 | #ifdef CONFIG_PM_RUNTIME | ||
160 | extern void scsi_autopm_get_target(struct scsi_target *); | 159 | extern void scsi_autopm_get_target(struct scsi_target *); |
161 | extern void scsi_autopm_put_target(struct scsi_target *); | 160 | extern void scsi_autopm_put_target(struct scsi_target *); |
162 | extern int scsi_autopm_get_host(struct Scsi_Host *); | 161 | extern int scsi_autopm_get_host(struct Scsi_Host *); |
@@ -166,7 +165,7 @@ static inline void scsi_autopm_get_target(struct scsi_target *t) {} | |||
166 | static inline void scsi_autopm_put_target(struct scsi_target *t) {} | 165 | static inline void scsi_autopm_put_target(struct scsi_target *t) {} |
167 | static inline int scsi_autopm_get_host(struct Scsi_Host *h) { return 0; } | 166 | static inline int scsi_autopm_get_host(struct Scsi_Host *h) { return 0; } |
168 | static inline void scsi_autopm_put_host(struct Scsi_Host *h) {} | 167 | static inline void scsi_autopm_put_host(struct Scsi_Host *h) {} |
169 | #endif /* CONFIG_PM_RUNTIME */ | 168 | #endif /* CONFIG_PM */ |
170 | 169 | ||
171 | extern struct async_domain scsi_sd_pm_domain; | 170 | extern struct async_domain scsi_sd_pm_domain; |
172 | extern struct async_domain scsi_sd_probe_domain; | 171 | extern struct async_domain scsi_sd_probe_domain; |
diff --git a/drivers/scsi/ufs/ufshcd-pci.c b/drivers/scsi/ufs/ufshcd-pci.c index 955ed5587011..d15eaa466c59 100644 --- a/drivers/scsi/ufs/ufshcd-pci.c +++ b/drivers/scsi/ufs/ufshcd-pci.c | |||
@@ -62,12 +62,7 @@ static int ufshcd_pci_resume(struct device *dev) | |||
62 | { | 62 | { |
63 | return ufshcd_system_resume(dev_get_drvdata(dev)); | 63 | return ufshcd_system_resume(dev_get_drvdata(dev)); |
64 | } | 64 | } |
65 | #else | ||
66 | #define ufshcd_pci_suspend NULL | ||
67 | #define ufshcd_pci_resume NULL | ||
68 | #endif /* CONFIG_PM */ | ||
69 | 65 | ||
70 | #ifdef CONFIG_PM_RUNTIME | ||
71 | static int ufshcd_pci_runtime_suspend(struct device *dev) | 66 | static int ufshcd_pci_runtime_suspend(struct device *dev) |
72 | { | 67 | { |
73 | return ufshcd_runtime_suspend(dev_get_drvdata(dev)); | 68 | return ufshcd_runtime_suspend(dev_get_drvdata(dev)); |
@@ -80,11 +75,13 @@ static int ufshcd_pci_runtime_idle(struct device *dev) | |||
80 | { | 75 | { |
81 | return ufshcd_runtime_idle(dev_get_drvdata(dev)); | 76 | return ufshcd_runtime_idle(dev_get_drvdata(dev)); |
82 | } | 77 | } |
83 | #else /* !CONFIG_PM_RUNTIME */ | 78 | #else /* !CONFIG_PM */ |
79 | #define ufshcd_pci_suspend NULL | ||
80 | #define ufshcd_pci_resume NULL | ||
84 | #define ufshcd_pci_runtime_suspend NULL | 81 | #define ufshcd_pci_runtime_suspend NULL |
85 | #define ufshcd_pci_runtime_resume NULL | 82 | #define ufshcd_pci_runtime_resume NULL |
86 | #define ufshcd_pci_runtime_idle NULL | 83 | #define ufshcd_pci_runtime_idle NULL |
87 | #endif /* CONFIG_PM_RUNTIME */ | 84 | #endif /* CONFIG_PM */ |
88 | 85 | ||
89 | /** | 86 | /** |
90 | * ufshcd_pci_shutdown - main function to put the controller in reset state | 87 | * ufshcd_pci_shutdown - main function to put the controller in reset state |
diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c index 1c3467b82566..76d39b617db7 100644 --- a/drivers/scsi/ufs/ufshcd-pltfrm.c +++ b/drivers/scsi/ufs/ufshcd-pltfrm.c | |||
@@ -261,12 +261,7 @@ static int ufshcd_pltfrm_resume(struct device *dev) | |||
261 | { | 261 | { |
262 | return ufshcd_system_resume(dev_get_drvdata(dev)); | 262 | return ufshcd_system_resume(dev_get_drvdata(dev)); |
263 | } | 263 | } |
264 | #else | ||
265 | #define ufshcd_pltfrm_suspend NULL | ||
266 | #define ufshcd_pltfrm_resume NULL | ||
267 | #endif | ||
268 | 264 | ||
269 | #ifdef CONFIG_PM_RUNTIME | ||
270 | static int ufshcd_pltfrm_runtime_suspend(struct device *dev) | 265 | static int ufshcd_pltfrm_runtime_suspend(struct device *dev) |
271 | { | 266 | { |
272 | return ufshcd_runtime_suspend(dev_get_drvdata(dev)); | 267 | return ufshcd_runtime_suspend(dev_get_drvdata(dev)); |
@@ -279,11 +274,13 @@ static int ufshcd_pltfrm_runtime_idle(struct device *dev) | |||
279 | { | 274 | { |
280 | return ufshcd_runtime_idle(dev_get_drvdata(dev)); | 275 | return ufshcd_runtime_idle(dev_get_drvdata(dev)); |
281 | } | 276 | } |
282 | #else /* !CONFIG_PM_RUNTIME */ | 277 | #else /* !CONFIG_PM */ |
278 | #define ufshcd_pltfrm_suspend NULL | ||
279 | #define ufshcd_pltfrm_resume NULL | ||
283 | #define ufshcd_pltfrm_runtime_suspend NULL | 280 | #define ufshcd_pltfrm_runtime_suspend NULL |
284 | #define ufshcd_pltfrm_runtime_resume NULL | 281 | #define ufshcd_pltfrm_runtime_resume NULL |
285 | #define ufshcd_pltfrm_runtime_idle NULL | 282 | #define ufshcd_pltfrm_runtime_idle NULL |
286 | #endif /* CONFIG_PM_RUNTIME */ | 283 | #endif /* CONFIG_PM */ |
287 | 284 | ||
288 | static void ufshcd_pltfrm_shutdown(struct platform_device *pdev) | 285 | static void ufshcd_pltfrm_shutdown(struct platform_device *pdev) |
289 | { | 286 | { |
diff --git a/drivers/spi/spi-coldfire-qspi.c b/drivers/spi/spi-coldfire-qspi.c index e2fa628e55e7..41b5dc4445f6 100644 --- a/drivers/spi/spi-coldfire-qspi.c +++ b/drivers/spi/spi-coldfire-qspi.c | |||
@@ -491,7 +491,7 @@ static int mcfqspi_resume(struct device *dev) | |||
491 | } | 491 | } |
492 | #endif | 492 | #endif |
493 | 493 | ||
494 | #ifdef CONFIG_PM_RUNTIME | 494 | #ifdef CONFIG_PM |
495 | static int mcfqspi_runtime_suspend(struct device *dev) | 495 | static int mcfqspi_runtime_suspend(struct device *dev) |
496 | { | 496 | { |
497 | struct spi_master *master = dev_get_drvdata(dev); | 497 | struct spi_master *master = dev_get_drvdata(dev); |
diff --git a/drivers/spi/spi-orion.c b/drivers/spi/spi-orion.c index c76b7d7879df..9c217abeb65d 100644 --- a/drivers/spi/spi-orion.c +++ b/drivers/spi/spi-orion.c | |||
@@ -523,7 +523,7 @@ static int orion_spi_remove(struct platform_device *pdev) | |||
523 | 523 | ||
524 | MODULE_ALIAS("platform:" DRIVER_NAME); | 524 | MODULE_ALIAS("platform:" DRIVER_NAME); |
525 | 525 | ||
526 | #ifdef CONFIG_PM_RUNTIME | 526 | #ifdef CONFIG_PM |
527 | static int orion_spi_runtime_suspend(struct device *dev) | 527 | static int orion_spi_runtime_suspend(struct device *dev) |
528 | { | 528 | { |
529 | struct spi_master *master = dev_get_drvdata(dev); | 529 | struct spi_master *master = dev_get_drvdata(dev); |
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 9e9e0f971e6c..429ff7eb1414 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c | |||
@@ -1307,7 +1307,7 @@ static int pxa2xx_spi_resume(struct device *dev) | |||
1307 | } | 1307 | } |
1308 | #endif | 1308 | #endif |
1309 | 1309 | ||
1310 | #ifdef CONFIG_PM_RUNTIME | 1310 | #ifdef CONFIG_PM |
1311 | static int pxa2xx_spi_runtime_suspend(struct device *dev) | 1311 | static int pxa2xx_spi_runtime_suspend(struct device *dev) |
1312 | { | 1312 | { |
1313 | struct driver_data *drv_data = dev_get_drvdata(dev); | 1313 | struct driver_data *drv_data = dev_get_drvdata(dev); |
diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index 9f83d2950748..3d0ab0a00466 100644 --- a/drivers/spi/spi-qup.c +++ b/drivers/spi/spi-qup.c | |||
@@ -646,7 +646,7 @@ error: | |||
646 | return ret; | 646 | return ret; |
647 | } | 647 | } |
648 | 648 | ||
649 | #ifdef CONFIG_PM_RUNTIME | 649 | #ifdef CONFIG_PM |
650 | static int spi_qup_pm_suspend_runtime(struct device *device) | 650 | static int spi_qup_pm_suspend_runtime(struct device *device) |
651 | { | 651 | { |
652 | struct spi_master *master = dev_get_drvdata(device); | 652 | struct spi_master *master = dev_get_drvdata(device); |
@@ -672,7 +672,7 @@ static int spi_qup_pm_resume_runtime(struct device *device) | |||
672 | writel_relaxed(config, controller->base + QUP_CONFIG); | 672 | writel_relaxed(config, controller->base + QUP_CONFIG); |
673 | return 0; | 673 | return 0; |
674 | } | 674 | } |
675 | #endif /* CONFIG_PM_RUNTIME */ | 675 | #endif /* CONFIG_PM */ |
676 | 676 | ||
677 | #ifdef CONFIG_PM_SLEEP | 677 | #ifdef CONFIG_PM_SLEEP |
678 | static int spi_qup_suspend(struct device *device) | 678 | static int spi_qup_suspend(struct device *device) |
diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 87bc16f491f0..29ab9a106a5f 100644 --- a/drivers/spi/spi-rockchip.c +++ b/drivers/spi/spi-rockchip.c | |||
@@ -801,7 +801,7 @@ static int rockchip_spi_resume(struct device *dev) | |||
801 | } | 801 | } |
802 | #endif /* CONFIG_PM_SLEEP */ | 802 | #endif /* CONFIG_PM_SLEEP */ |
803 | 803 | ||
804 | #ifdef CONFIG_PM_RUNTIME | 804 | #ifdef CONFIG_PM |
805 | static int rockchip_spi_runtime_suspend(struct device *dev) | 805 | static int rockchip_spi_runtime_suspend(struct device *dev) |
806 | { | 806 | { |
807 | struct spi_master *master = dev_get_drvdata(dev); | 807 | struct spi_master *master = dev_get_drvdata(dev); |
@@ -829,7 +829,7 @@ static int rockchip_spi_runtime_resume(struct device *dev) | |||
829 | 829 | ||
830 | return ret; | 830 | return ret; |
831 | } | 831 | } |
832 | #endif /* CONFIG_PM_RUNTIME */ | 832 | #endif /* CONFIG_PM */ |
833 | 833 | ||
834 | static const struct dev_pm_ops rockchip_spi_pm = { | 834 | static const struct dev_pm_ops rockchip_spi_pm = { |
835 | SET_SYSTEM_SLEEP_PM_OPS(rockchip_spi_suspend, rockchip_spi_resume) | 835 | SET_SYSTEM_SLEEP_PM_OPS(rockchip_spi_suspend, rockchip_spi_resume) |
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 480133ee1eb3..ec74e01e8ee1 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c | |||
@@ -1266,7 +1266,7 @@ static int s3c64xx_spi_resume(struct device *dev) | |||
1266 | } | 1266 | } |
1267 | #endif /* CONFIG_PM_SLEEP */ | 1267 | #endif /* CONFIG_PM_SLEEP */ |
1268 | 1268 | ||
1269 | #ifdef CONFIG_PM_RUNTIME | 1269 | #ifdef CONFIG_PM |
1270 | static int s3c64xx_spi_runtime_suspend(struct device *dev) | 1270 | static int s3c64xx_spi_runtime_suspend(struct device *dev) |
1271 | { | 1271 | { |
1272 | struct spi_master *master = dev_get_drvdata(dev); | 1272 | struct spi_master *master = dev_get_drvdata(dev); |
@@ -1296,7 +1296,7 @@ static int s3c64xx_spi_runtime_resume(struct device *dev) | |||
1296 | 1296 | ||
1297 | return 0; | 1297 | return 0; |
1298 | } | 1298 | } |
1299 | #endif /* CONFIG_PM_RUNTIME */ | 1299 | #endif /* CONFIG_PM */ |
1300 | 1300 | ||
1301 | static const struct dev_pm_ops s3c64xx_spi_pm = { | 1301 | static const struct dev_pm_ops s3c64xx_spi_pm = { |
1302 | SET_SYSTEM_SLEEP_PM_OPS(s3c64xx_spi_suspend, s3c64xx_spi_resume) | 1302 | SET_SYSTEM_SLEEP_PM_OPS(s3c64xx_spi_suspend, s3c64xx_spi_resume) |
diff --git a/drivers/staging/gdm72xx/Kconfig b/drivers/staging/gdm72xx/Kconfig index 5836503caa7b..bf11a7fbfc51 100644 --- a/drivers/staging/gdm72xx/Kconfig +++ b/drivers/staging/gdm72xx/Kconfig | |||
@@ -53,7 +53,7 @@ if WIMAX_GDM72XX_USB | |||
53 | 53 | ||
54 | config WIMAX_GDM72XX_USB_PM | 54 | config WIMAX_GDM72XX_USB_PM |
55 | bool "Enable power management support" | 55 | bool "Enable power management support" |
56 | depends on PM_RUNTIME | 56 | depends on PM |
57 | help | 57 | help |
58 | Enable USB power management in order to reduce power consumption | 58 | Enable USB power management in order to reduce power consumption |
59 | while the interface is not in use. | 59 | while the interface is not in use. |
diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index beea6ca73ee5..ed45a14872cb 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c | |||
@@ -489,7 +489,7 @@ static int dw8250_resume(struct device *dev) | |||
489 | } | 489 | } |
490 | #endif /* CONFIG_PM_SLEEP */ | 490 | #endif /* CONFIG_PM_SLEEP */ |
491 | 491 | ||
492 | #ifdef CONFIG_PM_RUNTIME | 492 | #ifdef CONFIG_PM |
493 | static int dw8250_runtime_suspend(struct device *dev) | 493 | static int dw8250_runtime_suspend(struct device *dev) |
494 | { | 494 | { |
495 | struct dw8250_data *data = dev_get_drvdata(dev); | 495 | struct dw8250_data *data = dev_get_drvdata(dev); |
diff --git a/drivers/tty/serial/8250/8250_mtk.c b/drivers/tty/serial/8250/8250_mtk.c index de7aae523b37..b7f1dc64fed5 100644 --- a/drivers/tty/serial/8250/8250_mtk.c +++ b/drivers/tty/serial/8250/8250_mtk.c | |||
@@ -244,7 +244,7 @@ static int mtk8250_resume(struct device *dev) | |||
244 | } | 244 | } |
245 | #endif /* CONFIG_PM_SLEEP */ | 245 | #endif /* CONFIG_PM_SLEEP */ |
246 | 246 | ||
247 | #ifdef CONFIG_PM_RUNTIME | 247 | #ifdef CONFIG_PM |
248 | static int mtk8250_runtime_suspend(struct device *dev) | 248 | static int mtk8250_runtime_suspend(struct device *dev) |
249 | { | 249 | { |
250 | struct mtk8250_data *data = dev_get_drvdata(dev); | 250 | struct mtk8250_data *data = dev_get_drvdata(dev); |
diff --git a/drivers/tty/serial/mfd.c b/drivers/tty/serial/mfd.c index 445799dc9846..4a5c956f4746 100644 --- a/drivers/tty/serial/mfd.c +++ b/drivers/tty/serial/mfd.c | |||
@@ -1252,12 +1252,7 @@ static int serial_hsu_resume(struct pci_dev *pdev) | |||
1252 | } | 1252 | } |
1253 | return 0; | 1253 | return 0; |
1254 | } | 1254 | } |
1255 | #else | ||
1256 | #define serial_hsu_suspend NULL | ||
1257 | #define serial_hsu_resume NULL | ||
1258 | #endif | ||
1259 | 1255 | ||
1260 | #ifdef CONFIG_PM_RUNTIME | ||
1261 | static int serial_hsu_runtime_idle(struct device *dev) | 1256 | static int serial_hsu_runtime_idle(struct device *dev) |
1262 | { | 1257 | { |
1263 | pm_schedule_suspend(dev, 500); | 1258 | pm_schedule_suspend(dev, 500); |
@@ -1274,6 +1269,8 @@ static int serial_hsu_runtime_resume(struct device *dev) | |||
1274 | return 0; | 1269 | return 0; |
1275 | } | 1270 | } |
1276 | #else | 1271 | #else |
1272 | #define serial_hsu_suspend NULL | ||
1273 | #define serial_hsu_resume NULL | ||
1277 | #define serial_hsu_runtime_idle NULL | 1274 | #define serial_hsu_runtime_idle NULL |
1278 | #define serial_hsu_runtime_suspend NULL | 1275 | #define serial_hsu_runtime_suspend NULL |
1279 | #define serial_hsu_runtime_resume NULL | 1276 | #define serial_hsu_runtime_resume NULL |
diff --git a/drivers/tty/serial/msm_serial_hs.c b/drivers/tty/serial/msm_serial_hs.c index 48e94961a9e5..df68f334ab8b 100644 --- a/drivers/tty/serial/msm_serial_hs.c +++ b/drivers/tty/serial/msm_serial_hs.c | |||
@@ -1792,7 +1792,7 @@ static void __exit msm_serial_hs_exit(void) | |||
1792 | } | 1792 | } |
1793 | module_exit(msm_serial_hs_exit); | 1793 | module_exit(msm_serial_hs_exit); |
1794 | 1794 | ||
1795 | #ifdef CONFIG_PM_RUNTIME | 1795 | #ifdef CONFIG_PM |
1796 | static int msm_hs_runtime_idle(struct device *dev) | 1796 | static int msm_hs_runtime_idle(struct device *dev) |
1797 | { | 1797 | { |
1798 | /* | 1798 | /* |
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index 18c30cabe27f..c44ec5fb2994 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c | |||
@@ -1799,7 +1799,7 @@ static void serial_omap_mdr1_errataset(struct uart_omap_port *up, u8 mdr1) | |||
1799 | } | 1799 | } |
1800 | } | 1800 | } |
1801 | 1801 | ||
1802 | #ifdef CONFIG_PM_RUNTIME | 1802 | #ifdef CONFIG_PM |
1803 | static void serial_omap_restore_context(struct uart_omap_port *up) | 1803 | static void serial_omap_restore_context(struct uart_omap_port *up) |
1804 | { | 1804 | { |
1805 | if (up->errata & UART_ERRATA_i202_MDR1_ACCESS) | 1805 | if (up->errata & UART_ERRATA_i202_MDR1_ACCESS) |
diff --git a/drivers/usb/core/Kconfig b/drivers/usb/core/Kconfig index 9cfda6a72194..cc0ced08bae2 100644 --- a/drivers/usb/core/Kconfig +++ b/drivers/usb/core/Kconfig | |||
@@ -43,7 +43,7 @@ config USB_DYNAMIC_MINORS | |||
43 | 43 | ||
44 | config USB_OTG | 44 | config USB_OTG |
45 | bool "OTG support" | 45 | bool "OTG support" |
46 | depends on PM_RUNTIME | 46 | depends on PM |
47 | default n | 47 | default n |
48 | help | 48 | help |
49 | The most notable feature of USB OTG is support for a | 49 | The most notable feature of USB OTG is support for a |
diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig index 0cd1f44f0ee8..c6d0c8e745b9 100644 --- a/drivers/usb/phy/Kconfig +++ b/drivers/usb/phy/Kconfig | |||
@@ -20,7 +20,7 @@ config AB8500_USB | |||
20 | 20 | ||
21 | config FSL_USB2_OTG | 21 | config FSL_USB2_OTG |
22 | bool "Freescale USB OTG Transceiver Driver" | 22 | bool "Freescale USB OTG Transceiver Driver" |
23 | depends on USB_EHCI_FSL && USB_FSL_USB2 && USB_OTG_FSM && PM_RUNTIME | 23 | depends on USB_EHCI_FSL && USB_FSL_USB2 && USB_OTG_FSM && PM |
24 | select USB_OTG | 24 | select USB_OTG |
25 | select USB_PHY | 25 | select USB_PHY |
26 | help | 26 | help |
@@ -153,7 +153,7 @@ config USB_MSM_OTG | |||
153 | 153 | ||
154 | config USB_MV_OTG | 154 | config USB_MV_OTG |
155 | tristate "Marvell USB OTG support" | 155 | tristate "Marvell USB OTG support" |
156 | depends on USB_EHCI_MV && USB_MV_UDC && PM_RUNTIME | 156 | depends on USB_EHCI_MV && USB_MV_UDC && PM |
157 | select USB_OTG | 157 | select USB_OTG |
158 | select USB_PHY | 158 | select USB_PHY |
159 | help | 159 | help |
diff --git a/drivers/usb/storage/Kconfig b/drivers/usb/storage/Kconfig index 715f299af6ea..ec84758f0e23 100644 --- a/drivers/usb/storage/Kconfig +++ b/drivers/usb/storage/Kconfig | |||
@@ -41,7 +41,7 @@ config USB_STORAGE_REALTEK | |||
41 | 41 | ||
42 | config REALTEK_AUTOPM | 42 | config REALTEK_AUTOPM |
43 | bool "Realtek Card Reader autosuspend support" | 43 | bool "Realtek Card Reader autosuspend support" |
44 | depends on USB_STORAGE_REALTEK && PM_RUNTIME | 44 | depends on USB_STORAGE_REALTEK && PM |
45 | default y | 45 | default y |
46 | 46 | ||
47 | config USB_STORAGE_DATAFAB | 47 | config USB_STORAGE_DATAFAB |
diff --git a/drivers/video/fbdev/s3c-fb.c b/drivers/video/fbdev/s3c-fb.c index b33abb0a433d..57f88fd0ba9e 100644 --- a/drivers/video/fbdev/s3c-fb.c +++ b/drivers/video/fbdev/s3c-fb.c | |||
@@ -1630,7 +1630,7 @@ static int s3c_fb_resume(struct device *dev) | |||
1630 | } | 1630 | } |
1631 | #endif | 1631 | #endif |
1632 | 1632 | ||
1633 | #ifdef CONFIG_PM_RUNTIME | 1633 | #ifdef CONFIG_PM |
1634 | static int s3c_fb_runtime_suspend(struct device *dev) | 1634 | static int s3c_fb_runtime_suspend(struct device *dev) |
1635 | { | 1635 | { |
1636 | struct s3c_fb *sfb = dev_get_drvdata(dev); | 1636 | struct s3c_fb *sfb = dev_get_drvdata(dev); |
diff --git a/drivers/video/fbdev/sh_mobile_meram.c b/drivers/video/fbdev/sh_mobile_meram.c index a297de5cc859..239453942706 100644 --- a/drivers/video/fbdev/sh_mobile_meram.c +++ b/drivers/video/fbdev/sh_mobile_meram.c | |||
@@ -569,7 +569,7 @@ EXPORT_SYMBOL_GPL(sh_mobile_meram_cache_update); | |||
569 | * Power management | 569 | * Power management |
570 | */ | 570 | */ |
571 | 571 | ||
572 | #if defined(CONFIG_PM_SLEEP) || defined(CONFIG_PM_RUNTIME) | 572 | #ifdef CONFIG_PM |
573 | static int sh_mobile_meram_suspend(struct device *dev) | 573 | static int sh_mobile_meram_suspend(struct device *dev) |
574 | { | 574 | { |
575 | struct platform_device *pdev = to_platform_device(dev); | 575 | struct platform_device *pdev = to_platform_device(dev); |
@@ -612,7 +612,7 @@ static int sh_mobile_meram_resume(struct device *dev) | |||
612 | meram_write_reg(priv->base, common_regs[i], priv->regs[i]); | 612 | meram_write_reg(priv->base, common_regs[i], priv->regs[i]); |
613 | return 0; | 613 | return 0; |
614 | } | 614 | } |
615 | #endif /* CONFIG_PM_SLEEP || CONFIG_PM_RUNTIME */ | 615 | #endif /* CONFIG_PM */ |
616 | 616 | ||
617 | static UNIVERSAL_DEV_PM_OPS(sh_mobile_meram_dev_pm_ops, | 617 | static UNIVERSAL_DEV_PM_OPS(sh_mobile_meram_dev_pm_ops, |
618 | sh_mobile_meram_suspend, | 618 | sh_mobile_meram_suspend, |
diff --git a/include/linux/pm.h b/include/linux/pm.h index 66a656eb335b..8b5976364619 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h | |||
@@ -351,8 +351,6 @@ struct dev_pm_ops { | |||
351 | #define SET_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn) | 351 | #define SET_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn) |
352 | #endif | 352 | #endif |
353 | 353 | ||
354 | #define SET_PM_RUNTIME_PM_OPS SET_RUNTIME_PM_OPS | ||
355 | |||
356 | /* | 354 | /* |
357 | * Use this if you want to use the same suspend and resume callbacks for suspend | 355 | * Use this if you want to use the same suspend and resume callbacks for suspend |
358 | * to RAM and hibernation. | 356 | * to RAM and hibernation. |
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index 6364e23454dd..3a4edd1f7dbb 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h | |||
@@ -441,13 +441,13 @@ static inline int scsi_execute_req(struct scsi_device *sdev, | |||
441 | extern void sdev_disable_disk_events(struct scsi_device *sdev); | 441 | extern void sdev_disable_disk_events(struct scsi_device *sdev); |
442 | extern void sdev_enable_disk_events(struct scsi_device *sdev); | 442 | extern void sdev_enable_disk_events(struct scsi_device *sdev); |
443 | 443 | ||
444 | #ifdef CONFIG_PM_RUNTIME | 444 | #ifdef CONFIG_PM |
445 | extern int scsi_autopm_get_device(struct scsi_device *); | 445 | extern int scsi_autopm_get_device(struct scsi_device *); |
446 | extern void scsi_autopm_put_device(struct scsi_device *); | 446 | extern void scsi_autopm_put_device(struct scsi_device *); |
447 | #else | 447 | #else |
448 | static inline int scsi_autopm_get_device(struct scsi_device *d) { return 0; } | 448 | static inline int scsi_autopm_get_device(struct scsi_device *d) { return 0; } |
449 | static inline void scsi_autopm_put_device(struct scsi_device *d) {} | 449 | static inline void scsi_autopm_put_device(struct scsi_device *d) {} |
450 | #endif /* CONFIG_PM_RUNTIME */ | 450 | #endif /* CONFIG_PM */ |
451 | 451 | ||
452 | static inline int __must_check scsi_device_reprobe(struct scsi_device *sdev) | 452 | static inline int __must_check scsi_device_reprobe(struct scsi_device *sdev) |
453 | { | 453 | { |
diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile index 67d6369ddf83..979ccde26720 100644 --- a/kernel/trace/Makefile +++ b/kernel/trace/Makefile | |||
@@ -55,7 +55,7 @@ obj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o | |||
55 | obj-$(CONFIG_EVENT_TRACING) += trace_events_trigger.o | 55 | obj-$(CONFIG_EVENT_TRACING) += trace_events_trigger.o |
56 | obj-$(CONFIG_KPROBE_EVENT) += trace_kprobe.o | 56 | obj-$(CONFIG_KPROBE_EVENT) += trace_kprobe.o |
57 | obj-$(CONFIG_TRACEPOINTS) += power-traces.o | 57 | obj-$(CONFIG_TRACEPOINTS) += power-traces.o |
58 | ifeq ($(CONFIG_PM_RUNTIME),y) | 58 | ifeq ($(CONFIG_PM),y) |
59 | obj-$(CONFIG_TRACEPOINTS) += rpm-traces.o | 59 | obj-$(CONFIG_TRACEPOINTS) += rpm-traces.o |
60 | endif | 60 | endif |
61 | ifeq ($(CONFIG_TRACING),y) | 61 | ifeq ($(CONFIG_TRACING),y) |
diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c index 8337645aa7a5..8276a743e22e 100644 --- a/sound/pci/hda/hda_controller.c +++ b/sound/pci/hda/hda_controller.c | |||
@@ -1676,7 +1676,7 @@ irqreturn_t azx_interrupt(int irq, void *dev_id) | |||
1676 | u8 sd_status; | 1676 | u8 sd_status; |
1677 | int i; | 1677 | int i; |
1678 | 1678 | ||
1679 | #ifdef CONFIG_PM_RUNTIME | 1679 | #ifdef CONFIG_PM |
1680 | if (chip->driver_caps & AZX_DCAPS_PM_RUNTIME) | 1680 | if (chip->driver_caps & AZX_DCAPS_PM_RUNTIME) |
1681 | if (!pm_runtime_active(chip->card->dev)) | 1681 | if (!pm_runtime_active(chip->card->dev)) |
1682 | return IRQ_NONE; | 1682 | return IRQ_NONE; |
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 48b6c5a3884f..243ffad40605 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -857,7 +857,7 @@ static int azx_resume(struct device *dev) | |||
857 | } | 857 | } |
858 | #endif /* CONFIG_PM_SLEEP || SUPPORT_VGA_SWITCHEROO */ | 858 | #endif /* CONFIG_PM_SLEEP || SUPPORT_VGA_SWITCHEROO */ |
859 | 859 | ||
860 | #ifdef CONFIG_PM_RUNTIME | 860 | #ifdef CONFIG_PM |
861 | static int azx_runtime_suspend(struct device *dev) | 861 | static int azx_runtime_suspend(struct device *dev) |
862 | { | 862 | { |
863 | struct snd_card *card = dev_get_drvdata(dev); | 863 | struct snd_card *card = dev_get_drvdata(dev); |
@@ -955,9 +955,6 @@ static int azx_runtime_idle(struct device *dev) | |||
955 | return 0; | 955 | return 0; |
956 | } | 956 | } |
957 | 957 | ||
958 | #endif /* CONFIG_PM_RUNTIME */ | ||
959 | |||
960 | #ifdef CONFIG_PM | ||
961 | static const struct dev_pm_ops azx_pm = { | 958 | static const struct dev_pm_ops azx_pm = { |
962 | SET_SYSTEM_SLEEP_PM_OPS(azx_suspend, azx_resume) | 959 | SET_SYSTEM_SLEEP_PM_OPS(azx_suspend, azx_resume) |
963 | SET_RUNTIME_PM_OPS(azx_runtime_suspend, azx_runtime_resume, azx_runtime_idle) | 960 | SET_RUNTIME_PM_OPS(azx_runtime_suspend, azx_runtime_resume, azx_runtime_idle) |
diff --git a/sound/soc/codecs/cs35l32.c b/sound/soc/codecs/cs35l32.c index c125925da92e..ec55c590afd0 100644 --- a/sound/soc/codecs/cs35l32.c +++ b/sound/soc/codecs/cs35l32.c | |||
@@ -550,7 +550,7 @@ static int cs35l32_i2c_remove(struct i2c_client *i2c_client) | |||
550 | return 0; | 550 | return 0; |
551 | } | 551 | } |
552 | 552 | ||
553 | #ifdef CONFIG_PM_RUNTIME | 553 | #ifdef CONFIG_PM |
554 | static int cs35l32_runtime_suspend(struct device *dev) | 554 | static int cs35l32_runtime_suspend(struct device *dev) |
555 | { | 555 | { |
556 | struct cs35l32_private *cs35l32 = dev_get_drvdata(dev); | 556 | struct cs35l32_private *cs35l32 = dev_get_drvdata(dev); |
diff --git a/sound/soc/codecs/cs42xx8.c b/sound/soc/codecs/cs42xx8.c index 02b1520ae0bc..670ebfe12903 100644 --- a/sound/soc/codecs/cs42xx8.c +++ b/sound/soc/codecs/cs42xx8.c | |||
@@ -537,7 +537,7 @@ err_enable: | |||
537 | } | 537 | } |
538 | EXPORT_SYMBOL_GPL(cs42xx8_probe); | 538 | EXPORT_SYMBOL_GPL(cs42xx8_probe); |
539 | 539 | ||
540 | #ifdef CONFIG_PM_RUNTIME | 540 | #ifdef CONFIG_PM |
541 | static int cs42xx8_runtime_resume(struct device *dev) | 541 | static int cs42xx8_runtime_resume(struct device *dev) |
542 | { | 542 | { |
543 | struct cs42xx8_priv *cs42xx8 = dev_get_drvdata(dev); | 543 | struct cs42xx8_priv *cs42xx8 = dev_get_drvdata(dev); |
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index 1229554f1464..88a65da3c53c 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c | |||
@@ -2492,7 +2492,7 @@ static int max98090_i2c_remove(struct i2c_client *client) | |||
2492 | return 0; | 2492 | return 0; |
2493 | } | 2493 | } |
2494 | 2494 | ||
2495 | #ifdef CONFIG_PM_RUNTIME | 2495 | #ifdef CONFIG_PM |
2496 | static int max98090_runtime_resume(struct device *dev) | 2496 | static int max98090_runtime_resume(struct device *dev) |
2497 | { | 2497 | { |
2498 | struct max98090_priv *max98090 = dev_get_drvdata(dev); | 2498 | struct max98090_priv *max98090 = dev_get_drvdata(dev); |
diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c index 0c8aefab404c..e5f2fb884bf3 100644 --- a/sound/soc/codecs/pcm512x.c +++ b/sound/soc/codecs/pcm512x.c | |||
@@ -517,7 +517,7 @@ void pcm512x_remove(struct device *dev) | |||
517 | } | 517 | } |
518 | EXPORT_SYMBOL_GPL(pcm512x_remove); | 518 | EXPORT_SYMBOL_GPL(pcm512x_remove); |
519 | 519 | ||
520 | #ifdef CONFIG_PM_RUNTIME | 520 | #ifdef CONFIG_PM |
521 | static int pcm512x_suspend(struct device *dev) | 521 | static int pcm512x_suspend(struct device *dev) |
522 | { | 522 | { |
523 | struct pcm512x_priv *pcm512x = dev_get_drvdata(dev); | 523 | struct pcm512x_priv *pcm512x = dev_get_drvdata(dev); |
diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c index f039dc825971..0fde5df40f4d 100644 --- a/sound/soc/codecs/tas2552.c +++ b/sound/soc/codecs/tas2552.c | |||
@@ -115,7 +115,7 @@ static const struct snd_soc_dapm_route tas2552_audio_map[] = { | |||
115 | {"ClassD", NULL, "PLL"}, | 115 | {"ClassD", NULL, "PLL"}, |
116 | }; | 116 | }; |
117 | 117 | ||
118 | #ifdef CONFIG_PM_RUNTIME | 118 | #ifdef CONFIG_PM |
119 | static void tas2552_sw_shutdown(struct tas2552_data *tas_data, int sw_shutdown) | 119 | static void tas2552_sw_shutdown(struct tas2552_data *tas_data, int sw_shutdown) |
120 | { | 120 | { |
121 | u8 cfg1_reg; | 121 | u8 cfg1_reg; |
@@ -264,7 +264,7 @@ static int tas2552_mute(struct snd_soc_dai *dai, int mute) | |||
264 | return 0; | 264 | return 0; |
265 | } | 265 | } |
266 | 266 | ||
267 | #ifdef CONFIG_PM_RUNTIME | 267 | #ifdef CONFIG_PM |
268 | static int tas2552_runtime_suspend(struct device *dev) | 268 | static int tas2552_runtime_suspend(struct device *dev) |
269 | { | 269 | { |
270 | struct tas2552_data *tas2552 = dev_get_drvdata(dev); | 270 | struct tas2552_data *tas2552 = dev_get_drvdata(dev); |
diff --git a/sound/soc/codecs/wm2200.c b/sound/soc/codecs/wm2200.c index cdea9d9c1631..15599845a660 100644 --- a/sound/soc/codecs/wm2200.c +++ b/sound/soc/codecs/wm2200.c | |||
@@ -2440,7 +2440,7 @@ static int wm2200_i2c_remove(struct i2c_client *i2c) | |||
2440 | return 0; | 2440 | return 0; |
2441 | } | 2441 | } |
2442 | 2442 | ||
2443 | #ifdef CONFIG_PM_RUNTIME | 2443 | #ifdef CONFIG_PM |
2444 | static int wm2200_runtime_suspend(struct device *dev) | 2444 | static int wm2200_runtime_suspend(struct device *dev) |
2445 | { | 2445 | { |
2446 | struct wm2200_priv *wm2200 = dev_get_drvdata(dev); | 2446 | struct wm2200_priv *wm2200 = dev_get_drvdata(dev); |
diff --git a/sound/soc/codecs/wm5100.c b/sound/soc/codecs/wm5100.c index a01ad629ed61..b80970dc2d2f 100644 --- a/sound/soc/codecs/wm5100.c +++ b/sound/soc/codecs/wm5100.c | |||
@@ -2664,7 +2664,7 @@ static int wm5100_i2c_remove(struct i2c_client *i2c) | |||
2664 | return 0; | 2664 | return 0; |
2665 | } | 2665 | } |
2666 | 2666 | ||
2667 | #ifdef CONFIG_PM_RUNTIME | 2667 | #ifdef CONFIG_PM |
2668 | static int wm5100_runtime_suspend(struct device *dev) | 2668 | static int wm5100_runtime_suspend(struct device *dev) |
2669 | { | 2669 | { |
2670 | struct wm5100_priv *wm5100 = dev_get_drvdata(dev); | 2670 | struct wm5100_priv *wm5100 = dev_get_drvdata(dev); |
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 9077411e62ce..77ea0012afca 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c | |||
@@ -3782,7 +3782,7 @@ static int wm8962_i2c_remove(struct i2c_client *client) | |||
3782 | return 0; | 3782 | return 0; |
3783 | } | 3783 | } |
3784 | 3784 | ||
3785 | #ifdef CONFIG_PM_RUNTIME | 3785 | #ifdef CONFIG_PM |
3786 | static int wm8962_runtime_resume(struct device *dev) | 3786 | static int wm8962_runtime_resume(struct device *dev) |
3787 | { | 3787 | { |
3788 | struct wm8962_priv *wm8962 = dev_get_drvdata(dev); | 3788 | struct wm8962_priv *wm8962 = dev_get_drvdata(dev); |
diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c index 9deabdd2b1a2..026a80117540 100644 --- a/sound/soc/fsl/fsl_asrc.c +++ b/sound/soc/fsl/fsl_asrc.c | |||
@@ -928,7 +928,7 @@ static int fsl_asrc_probe(struct platform_device *pdev) | |||
928 | return 0; | 928 | return 0; |
929 | } | 929 | } |
930 | 930 | ||
931 | #ifdef CONFIG_PM_RUNTIME | 931 | #ifdef CONFIG_PM |
932 | static int fsl_asrc_runtime_resume(struct device *dev) | 932 | static int fsl_asrc_runtime_resume(struct device *dev) |
933 | { | 933 | { |
934 | struct fsl_asrc *asrc_priv = dev_get_drvdata(dev); | 934 | struct fsl_asrc *asrc_priv = dev_get_drvdata(dev); |
@@ -954,7 +954,7 @@ static int fsl_asrc_runtime_suspend(struct device *dev) | |||
954 | 954 | ||
955 | return 0; | 955 | return 0; |
956 | } | 956 | } |
957 | #endif /* CONFIG_PM_RUNTIME */ | 957 | #endif /* CONFIG_PM */ |
958 | 958 | ||
959 | #ifdef CONFIG_PM_SLEEP | 959 | #ifdef CONFIG_PM_SLEEP |
960 | static int fsl_asrc_suspend(struct device *dev) | 960 | static int fsl_asrc_suspend(struct device *dev) |
diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index 9d513473b300..de8b13270bab 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c | |||
@@ -1113,7 +1113,7 @@ static inline const struct samsung_i2s_dai_data *samsung_i2s_get_driver_data( | |||
1113 | platform_get_device_id(pdev)->driver_data; | 1113 | platform_get_device_id(pdev)->driver_data; |
1114 | } | 1114 | } |
1115 | 1115 | ||
1116 | #ifdef CONFIG_PM_RUNTIME | 1116 | #ifdef CONFIG_PM |
1117 | static int i2s_runtime_suspend(struct device *dev) | 1117 | static int i2s_runtime_suspend(struct device *dev) |
1118 | { | 1118 | { |
1119 | struct i2s_dai *i2s = dev_get_drvdata(dev); | 1119 | struct i2s_dai *i2s = dev_get_drvdata(dev); |
@@ -1131,7 +1131,7 @@ static int i2s_runtime_resume(struct device *dev) | |||
1131 | 1131 | ||
1132 | return 0; | 1132 | return 0; |
1133 | } | 1133 | } |
1134 | #endif /* CONFIG_PM_RUNTIME */ | 1134 | #endif /* CONFIG_PM */ |
1135 | 1135 | ||
1136 | static int samsung_i2s_probe(struct platform_device *pdev) | 1136 | static int samsung_i2s_probe(struct platform_device *pdev) |
1137 | { | 1137 | { |