diff options
Diffstat (limited to 'include/scsi/scsi_device.h')
| -rw-r--r-- | include/scsi/scsi_device.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index d80b6dbed1ca..50cb34ffef11 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h | |||
| @@ -381,6 +381,14 @@ extern int scsi_execute_req(struct scsi_device *sdev, const unsigned char *cmd, | |||
| 381 | struct scsi_sense_hdr *, int timeout, int retries, | 381 | struct scsi_sense_hdr *, int timeout, int retries, |
| 382 | int *resid); | 382 | int *resid); |
| 383 | 383 | ||
| 384 | #ifdef CONFIG_PM_RUNTIME | ||
| 385 | extern int scsi_autopm_get_device(struct scsi_device *); | ||
| 386 | extern void scsi_autopm_put_device(struct scsi_device *); | ||
| 387 | #else | ||
| 388 | static inline int scsi_autopm_get_device(struct scsi_device *d) { return 0; } | ||
| 389 | static inline void scsi_autopm_put_device(struct scsi_device *d) {} | ||
| 390 | #endif /* CONFIG_PM_RUNTIME */ | ||
| 391 | |||
| 384 | static inline int __must_check scsi_device_reprobe(struct scsi_device *sdev) | 392 | static inline int __must_check scsi_device_reprobe(struct scsi_device *sdev) |
| 385 | { | 393 | { |
| 386 | return device_reprobe(&sdev->sdev_gendev); | 394 | return device_reprobe(&sdev->sdev_gendev); |
