Skip to content

Commit 71504e5

Browse files
committed
tty: 8250_omap: Replace CONFIG_PM_RUNTIME with CONFIG_PM
The 8250_omap serial driver is a new user of CONFIG_PM_RUNTIME. However, after commit b2b49cc (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 in 8250_omap.c. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 45544c8 commit 71504e5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

drivers/tty/serial/8250/8250_omap.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ static int omap_8250_startup(struct uart_port *port)
561561
if (ret)
562562
goto err;
563563

564-
#ifdef CONFIG_PM_RUNTIME
564+
#ifdef CONFIG_PM
565565
up->capabilities |= UART_CAP_RPM;
566566
#endif
567567

@@ -997,12 +997,12 @@ static int omap8250_probe(struct platform_device *pdev)
997997
up.port.fifosize = 64;
998998
up.tx_loadsz = 64;
999999
up.capabilities = UART_CAP_FIFO;
1000-
#ifdef CONFIG_PM_RUNTIME
1000+
#ifdef CONFIG_PM
10011001
/*
1002-
* PM_RUNTIME is mostly transparent. However to do it right we need to a
1002+
* Runtime PM is mostly transparent. However to do it right we need to a
10031003
* TX empty interrupt before we can put the device to auto idle. So if
1004-
* PM_RUNTIME is not enabled we don't add that flag and can spare that
1005-
* one extra interrupt in the TX path.
1004+
* PM is not enabled we don't add that flag and can spare that one extra
1005+
* interrupt in the TX path.
10061006
*/
10071007
up.capabilities |= UART_CAP_RPM;
10081008
#endif
@@ -1105,7 +1105,7 @@ static int omap8250_remove(struct platform_device *pdev)
11051105
return 0;
11061106
}
11071107

1108-
#if defined(CONFIG_PM_SLEEP) || defined(CONFIG_PM_RUNTIME)
1108+
#ifdef CONFIG_PM
11091109

11101110
static inline void omap8250_enable_wakeirq(struct omap8250_priv *priv,
11111111
bool enable)
@@ -1179,7 +1179,7 @@ static int omap8250_resume(struct device *dev)
11791179
#define omap8250_complete NULL
11801180
#endif
11811181

1182-
#ifdef CONFIG_PM_RUNTIME
1182+
#ifdef CONFIG_PM
11831183
static int omap8250_lost_context(struct uart_8250_port *up)
11841184
{
11851185
u32 val;

0 commit comments

Comments
 (0)