]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
tty / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 12 Dec 2014 23:41:36 +0000 (00:41 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 12 Dec 2014 23:41:36 +0000 (00:41 +0100)
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>
drivers/tty/serial/8250/8250_dw.c
drivers/tty/serial/8250/8250_mtk.c
drivers/tty/serial/mfd.c
drivers/tty/serial/msm_serial_hs.c
drivers/tty/serial/omap-serial.c

index beea6ca73ee50c8f18757bb87970b1107733c419..ed45a14872cbda678fa25ec89f05cee53b9fe08d 100644 (file)
@@ -489,7 +489,7 @@ static int dw8250_resume(struct device *dev)
 }
 #endif /* CONFIG_PM_SLEEP */
 
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
 static int dw8250_runtime_suspend(struct device *dev)
 {
        struct dw8250_data *data = dev_get_drvdata(dev);
index de7aae523b3728c10abc6c4000bd9b5f44786083..b7f1dc64fed5664216b32de7af8a931f7a80aa0d 100644 (file)
@@ -244,7 +244,7 @@ static int mtk8250_resume(struct device *dev)
 }
 #endif /* CONFIG_PM_SLEEP */
 
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
 static int mtk8250_runtime_suspend(struct device *dev)
 {
        struct mtk8250_data *data = dev_get_drvdata(dev);
index 445799dc98468f321d80a5338f3260be4dfca702..4a5c956f474634c0363b04ab9f33155b1d6a8ee9 100644 (file)
@@ -1252,12 +1252,7 @@ static int serial_hsu_resume(struct pci_dev *pdev)
        }
        return 0;
 }
-#else
-#define serial_hsu_suspend     NULL
-#define serial_hsu_resume      NULL
-#endif
 
-#ifdef CONFIG_PM_RUNTIME
 static int serial_hsu_runtime_idle(struct device *dev)
 {
        pm_schedule_suspend(dev, 500);
@@ -1274,6 +1269,8 @@ static int serial_hsu_runtime_resume(struct device *dev)
        return 0;
 }
 #else
+#define serial_hsu_suspend             NULL
+#define serial_hsu_resume              NULL
 #define serial_hsu_runtime_idle                NULL
 #define serial_hsu_runtime_suspend     NULL
 #define serial_hsu_runtime_resume      NULL
index 48e94961a9e572e96bc8e553ea5e420296d2b1a8..df68f334ab8b4b7541d0e4621203e03a7dddc71d 100644 (file)
@@ -1792,7 +1792,7 @@ static void __exit msm_serial_hs_exit(void)
 }
 module_exit(msm_serial_hs_exit);
 
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
 static int msm_hs_runtime_idle(struct device *dev)
 {
        /*
index 18c30cabe27fb8236cc11254b68a65f212643f2f..c44ec5fb2994fdcea8232462f7c466124b2e94e7 100644 (file)
@@ -1799,7 +1799,7 @@ static void serial_omap_mdr1_errataset(struct uart_omap_port *up, u8 mdr1)
        }
 }
 
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
 static void serial_omap_restore_context(struct uart_omap_port *up)
 {
        if (up->errata & UART_ERRATA_i202_MDR1_ACCESS)