mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[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: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
e5b3a65fd7
commit
e28482c5b2
1 changed files with 5 additions and 0 deletions
|
@ -293,6 +293,11 @@ extern int scsi_execute_async(struct scsi_device *sdev,
|
|||
void (*done)(void *, char *, int, int),
|
||||
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)
|
||||
{
|
||||
return sdev->channel;
|
||||
|
|
Loading…
Reference in a new issue