diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-12-12 18:41:36 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-12-12 18:41:36 -0500 |
commit | d39fe4e557530f7c8368552074e93c3ae4b9c33f (patch) | |
tree | a97ad3ef10dc0f6404aa7cb17222672a6a774044 | |
parent | ec83305032d9b29e439a9e56ca3644f97f638565 (diff) |
tty / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is
selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks
depending on CONFIG_PM_RUNTIME may now be changed to depend on
CONFIG_PM.
Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under
drivers/tty/.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/8250/8250_dw.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/8250/8250_mtk.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/mfd.c | 7 | ||||
-rw-r--r-- | drivers/tty/serial/msm_serial_hs.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/omap-serial.c | 2 |
5 files changed, 6 insertions, 9 deletions
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) |