diff options
Diffstat (limited to 'drivers/scsi/scsi_pm.c')
-rw-r--r-- | drivers/scsi/scsi_pm.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/scsi/scsi_pm.c b/drivers/scsi/scsi_pm.c index 7454498c4091..9e43ae1d2163 100644 --- a/drivers/scsi/scsi_pm.c +++ b/drivers/scsi/scsi_pm.c | |||
@@ -213,8 +213,6 @@ static int scsi_bus_restore(struct device *dev) | |||
213 | 213 | ||
214 | #endif /* CONFIG_PM_SLEEP */ | 214 | #endif /* CONFIG_PM_SLEEP */ |
215 | 215 | ||
216 | #ifdef CONFIG_PM_RUNTIME | ||
217 | |||
218 | static int sdev_runtime_suspend(struct device *dev) | 216 | static int sdev_runtime_suspend(struct device *dev) |
219 | { | 217 | { |
220 | const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; | 218 | 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) | |||
332 | pm_runtime_put_sync(&shost->shost_gendev); | 330 | pm_runtime_put_sync(&shost->shost_gendev); |
333 | } | 331 | } |
334 | 332 | ||
335 | #else | ||
336 | |||
337 | #define scsi_runtime_suspend NULL | ||
338 | #define scsi_runtime_resume NULL | ||
339 | #define scsi_runtime_idle NULL | ||
340 | |||
341 | #endif /* CONFIG_PM_RUNTIME */ | ||
342 | |||
343 | const struct dev_pm_ops scsi_bus_pm_ops = { | 333 | const struct dev_pm_ops scsi_bus_pm_ops = { |
344 | .prepare = scsi_bus_prepare, | 334 | .prepare = scsi_bus_prepare, |
345 | .suspend = scsi_bus_suspend, | 335 | .suspend = scsi_bus_suspend, |