diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-20 16:37:44 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-20 16:37:44 -0500 |
| commit | 5d6a54688632f640abda71164fea5d171ff07db8 (patch) | |
| tree | d2cc44629a86745a82d3d3552aec45ada17bcb78 /drivers | |
| parent | 787140ad6bb49422e2f114e9b8df18b242df00db (diff) | |
| parent | 464ed18ebdb6236fcff59d2a35d4d2e28668435a (diff) | |
Merge tag 'pm-config-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull CONFIG_PM_RUNTIME elimination from Rafael Wysocki:
"This removes the last few uses of CONFIG_PM_RUNTIME introduced
recently and makes that config option finally go away.
CONFIG_PM will be available directly from the menu now and also it
will be selected automatically if CONFIG_SUSPEND or CONFIG_HIBERNATION
is set"
* tag 'pm-config-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
PM: Eliminate CONFIG_PM_RUNTIME
tty: 8250_omap: Replace CONFIG_PM_RUNTIME with CONFIG_PM
sound: sst-haswell-pcm: Replace CONFIG_PM_RUNTIME with CONFIG_PM
spi: Replace CONFIG_PM_RUNTIME with CONFIG_PM
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/spi/spi-img-spfi.c | 4 | ||||
| -rw-r--r-- | drivers/spi/spi-meson-spifc.c | 4 | ||||
| -rw-r--r-- | drivers/tty/serial/8250/8250_omap.c | 14 | ||||
| -rw-r--r-- | drivers/usb/host/isp1760-hcd.c | 2 | ||||
| -rw-r--r-- | drivers/usb/host/oxu210hp-hcd.c | 2 |
5 files changed, 13 insertions, 13 deletions
diff --git a/drivers/spi/spi-img-spfi.c b/drivers/spi/spi-img-spfi.c index 43781c9fe521..b410499cddca 100644 --- a/drivers/spi/spi-img-spfi.c +++ b/drivers/spi/spi-img-spfi.c | |||
| @@ -663,7 +663,7 @@ static int img_spfi_remove(struct platform_device *pdev) | |||
| 663 | return 0; | 663 | return 0; |
| 664 | } | 664 | } |
| 665 | 665 | ||
| 666 | #ifdef CONFIG_PM_RUNTIME | 666 | #ifdef CONFIG_PM |
| 667 | static int img_spfi_runtime_suspend(struct device *dev) | 667 | static int img_spfi_runtime_suspend(struct device *dev) |
| 668 | { | 668 | { |
| 669 | struct spi_master *master = dev_get_drvdata(dev); | 669 | struct spi_master *master = dev_get_drvdata(dev); |
| @@ -692,7 +692,7 @@ static int img_spfi_runtime_resume(struct device *dev) | |||
| 692 | 692 | ||
| 693 | return 0; | 693 | return 0; |
| 694 | } | 694 | } |
| 695 | #endif /* CONFIG_PM_RUNTIME */ | 695 | #endif /* CONFIG_PM */ |
| 696 | 696 | ||
| 697 | #ifdef CONFIG_PM_SLEEP | 697 | #ifdef CONFIG_PM_SLEEP |
| 698 | static int img_spfi_suspend(struct device *dev) | 698 | static int img_spfi_suspend(struct device *dev) |
diff --git a/drivers/spi/spi-meson-spifc.c b/drivers/spi/spi-meson-spifc.c index 0e48f8c2037d..1bbac0378bf7 100644 --- a/drivers/spi/spi-meson-spifc.c +++ b/drivers/spi/spi-meson-spifc.c | |||
| @@ -413,7 +413,7 @@ static int meson_spifc_resume(struct device *dev) | |||
| 413 | } | 413 | } |
| 414 | #endif /* CONFIG_PM_SLEEP */ | 414 | #endif /* CONFIG_PM_SLEEP */ |
| 415 | 415 | ||
| 416 | #ifdef CONFIG_PM_RUNTIME | 416 | #ifdef CONFIG_PM |
| 417 | static int meson_spifc_runtime_suspend(struct device *dev) | 417 | static int meson_spifc_runtime_suspend(struct device *dev) |
| 418 | { | 418 | { |
| 419 | struct spi_master *master = dev_get_drvdata(dev); | 419 | struct spi_master *master = dev_get_drvdata(dev); |
| @@ -431,7 +431,7 @@ static int meson_spifc_runtime_resume(struct device *dev) | |||
| 431 | 431 | ||
| 432 | return clk_prepare_enable(spifc->clk); | 432 | return clk_prepare_enable(spifc->clk); |
| 433 | } | 433 | } |
| 434 | #endif /* CONFIG_PM_RUNTIME */ | 434 | #endif /* CONFIG_PM */ |
| 435 | 435 | ||
| 436 | static const struct dev_pm_ops meson_spifc_pm_ops = { | 436 | static const struct dev_pm_ops meson_spifc_pm_ops = { |
| 437 | SET_SYSTEM_SLEEP_PM_OPS(meson_spifc_suspend, meson_spifc_resume) | 437 | SET_SYSTEM_SLEEP_PM_OPS(meson_spifc_suspend, meson_spifc_resume) |
diff --git a/drivers/tty/serial/8250/8250_omap.c b/drivers/tty/serial/8250/8250_omap.c index 336602eb453e..96b69bfd773f 100644 --- a/drivers/tty/serial/8250/8250_omap.c +++ b/drivers/tty/serial/8250/8250_omap.c | |||
| @@ -561,7 +561,7 @@ static int omap_8250_startup(struct uart_port *port) | |||
| 561 | if (ret) | 561 | if (ret) |
| 562 | goto err; | 562 | goto err; |
| 563 | 563 | ||
| 564 | #ifdef CONFIG_PM_RUNTIME | 564 | #ifdef CONFIG_PM |
| 565 | up->capabilities |= UART_CAP_RPM; | 565 | up->capabilities |= UART_CAP_RPM; |
| 566 | #endif | 566 | #endif |
| 567 | 567 | ||
| @@ -997,12 +997,12 @@ static int omap8250_probe(struct platform_device *pdev) | |||
| 997 | up.port.fifosize = 64; | 997 | up.port.fifosize = 64; |
| 998 | up.tx_loadsz = 64; | 998 | up.tx_loadsz = 64; |
| 999 | up.capabilities = UART_CAP_FIFO; | 999 | up.capabilities = UART_CAP_FIFO; |
| 1000 | #ifdef CONFIG_PM_RUNTIME | 1000 | #ifdef CONFIG_PM |
| 1001 | /* | 1001 | /* |
| 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 |
| 1003 | * TX empty interrupt before we can put the device to auto idle. So if | 1003 | * 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 | 1004 | * PM is not enabled we don't add that flag and can spare that one extra |
| 1005 | * one extra interrupt in the TX path. | 1005 | * interrupt in the TX path. |
| 1006 | */ | 1006 | */ |
| 1007 | up.capabilities |= UART_CAP_RPM; | 1007 | up.capabilities |= UART_CAP_RPM; |
| 1008 | #endif | 1008 | #endif |
| @@ -1105,7 +1105,7 @@ static int omap8250_remove(struct platform_device *pdev) | |||
| 1105 | return 0; | 1105 | return 0; |
| 1106 | } | 1106 | } |
| 1107 | 1107 | ||
| 1108 | #if defined(CONFIG_PM_SLEEP) || defined(CONFIG_PM_RUNTIME) | 1108 | #ifdef CONFIG_PM |
| 1109 | 1109 | ||
| 1110 | static inline void omap8250_enable_wakeirq(struct omap8250_priv *priv, | 1110 | static inline void omap8250_enable_wakeirq(struct omap8250_priv *priv, |
| 1111 | bool enable) | 1111 | bool enable) |
| @@ -1179,7 +1179,7 @@ static int omap8250_resume(struct device *dev) | |||
| 1179 | #define omap8250_complete NULL | 1179 | #define omap8250_complete NULL |
| 1180 | #endif | 1180 | #endif |
| 1181 | 1181 | ||
| 1182 | #ifdef CONFIG_PM_RUNTIME | 1182 | #ifdef CONFIG_PM |
| 1183 | static int omap8250_lost_context(struct uart_8250_port *up) | 1183 | static int omap8250_lost_context(struct uart_8250_port *up) |
| 1184 | { | 1184 | { |
| 1185 | u32 val; | 1185 | u32 val; |
diff --git a/drivers/usb/host/isp1760-hcd.c b/drivers/usb/host/isp1760-hcd.c index e752c3098f38..395649f357aa 100644 --- a/drivers/usb/host/isp1760-hcd.c +++ b/drivers/usb/host/isp1760-hcd.c | |||
| @@ -1739,7 +1739,7 @@ static int isp1760_hub_status_data(struct usb_hcd *hcd, char *buf) | |||
| 1739 | int retval = 1; | 1739 | int retval = 1; |
| 1740 | unsigned long flags; | 1740 | unsigned long flags; |
| 1741 | 1741 | ||
| 1742 | /* if !PM_RUNTIME, root hub timers won't get shut down ... */ | 1742 | /* if !PM, root hub timers won't get shut down ... */ |
| 1743 | if (!HC_IS_RUNNING(hcd->state)) | 1743 | if (!HC_IS_RUNNING(hcd->state)) |
| 1744 | return 0; | 1744 | return 0; |
| 1745 | 1745 | ||
diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/host/oxu210hp-hcd.c index 75811dd5a9d7..036924e640f5 100644 --- a/drivers/usb/host/oxu210hp-hcd.c +++ b/drivers/usb/host/oxu210hp-hcd.c | |||
| @@ -3087,7 +3087,7 @@ static int oxu_hub_status_data(struct usb_hcd *hcd, char *buf) | |||
| 3087 | int ports, i, retval = 1; | 3087 | int ports, i, retval = 1; |
| 3088 | unsigned long flags; | 3088 | unsigned long flags; |
| 3089 | 3089 | ||
| 3090 | /* if !PM_RUNTIME, root hub timers won't get shut down ... */ | 3090 | /* if !PM, root hub timers won't get shut down ... */ |
| 3091 | if (!HC_IS_RUNNING(hcd->state)) | 3091 | if (!HC_IS_RUNNING(hcd->state)) |
| 3092 | return 0; | 3092 | return 0; |
| 3093 | 3093 | ||
