Skip to content

Commit 47164fd

Browse files
committed
spi: Replace CONFIG_PM_RUNTIME with CONFIG_PM
A couple of new CONFIG_PM_RUNTIME users have been added recently in the SPI subsystem. 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 everywhere under drivers/spi/ (again). Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Mark Brown <broonie@kernel.org>
1 parent c0f486f commit 47164fd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/spi/spi-img-spfi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ static int img_spfi_remove(struct platform_device *pdev)
663663
return 0;
664664
}
665665

666-
#ifdef CONFIG_PM_RUNTIME
666+
#ifdef CONFIG_PM
667667
static int img_spfi_runtime_suspend(struct device *dev)
668668
{
669669
struct spi_master *master = dev_get_drvdata(dev);
@@ -692,7 +692,7 @@ static int img_spfi_runtime_resume(struct device *dev)
692692

693693
return 0;
694694
}
695-
#endif /* CONFIG_PM_RUNTIME */
695+
#endif /* CONFIG_PM */
696696

697697
#ifdef CONFIG_PM_SLEEP
698698
static int img_spfi_suspend(struct device *dev)

drivers/spi/spi-meson-spifc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ static int meson_spifc_resume(struct device *dev)
413413
}
414414
#endif /* CONFIG_PM_SLEEP */
415415

416-
#ifdef CONFIG_PM_RUNTIME
416+
#ifdef CONFIG_PM
417417
static int meson_spifc_runtime_suspend(struct device *dev)
418418
{
419419
struct spi_master *master = dev_get_drvdata(dev);
@@ -431,7 +431,7 @@ static int meson_spifc_runtime_resume(struct device *dev)
431431

432432
return clk_prepare_enable(spifc->clk);
433433
}
434-
#endif /* CONFIG_PM_RUNTIME */
434+
#endif /* CONFIG_PM */
435435

436436
static const struct dev_pm_ops meson_spifc_pm_ops = {
437437
SET_SYSTEM_SLEEP_PM_OPS(meson_spifc_suspend, meson_spifc_resume)

0 commit comments

Comments
 (0)