SCSI / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
After commit b2b49ccbdd
(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/scsi/ and in include/scsi/scsi_device.h.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Aaron Lu <aaron.lu@intel.com>
Acked-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -213,8 +213,6 @@ static int scsi_bus_restore(struct device *dev)
|
||||
|
||||
#endif /* CONFIG_PM_SLEEP */
|
||||
|
||||
#ifdef CONFIG_PM_RUNTIME
|
||||
|
||||
static int sdev_runtime_suspend(struct device *dev)
|
||||
{
|
||||
const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
|
||||
@@ -332,14 +330,6 @@ void scsi_autopm_put_host(struct Scsi_Host *shost)
|
||||
pm_runtime_put_sync(&shost->shost_gendev);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#define scsi_runtime_suspend NULL
|
||||
#define scsi_runtime_resume NULL
|
||||
#define scsi_runtime_idle NULL
|
||||
|
||||
#endif /* CONFIG_PM_RUNTIME */
|
||||
|
||||
const struct dev_pm_ops scsi_bus_pm_ops = {
|
||||
.prepare = scsi_bus_prepare,
|
||||
.suspend = scsi_bus_suspend,
|
||||
|
Reference in New Issue
Block a user