Commit e28482c5 authored by James Bottomley's avatar James Bottomley

[SCSI] add scsi_reprobe_device

Original from Christoph Hellwig and Eric Moore.  This version exports
the scsi_reprobe_device() function as an inline.
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent e5b3a65f
...@@ -293,6 +293,11 @@ extern int scsi_execute_async(struct scsi_device *sdev, ...@@ -293,6 +293,11 @@ extern int scsi_execute_async(struct scsi_device *sdev,
void (*done)(void *, char *, int, int), void (*done)(void *, char *, int, int),
gfp_t gfp); gfp_t gfp);
static inline void scsi_device_reprobe(struct scsi_device *sdev)
{
device_reprobe(&sdev->sdev_gendev);
}
static inline unsigned int sdev_channel(struct scsi_device *sdev) static inline unsigned int sdev_channel(struct scsi_device *sdev)
{ {
return sdev->channel; return sdev->channel;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment