diff options
Diffstat (limited to 'drivers/scsi/scsi_proc.c')
-rw-r--r-- | drivers/scsi/scsi_proc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_proc.c b/drivers/scsi/scsi_proc.c index 1b5711e714a5..07be62bbaaea 100644 --- a/drivers/scsi/scsi_proc.c +++ b/drivers/scsi/scsi_proc.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <scsi/scsi.h> | 31 | #include <scsi/scsi.h> |
32 | #include <scsi/scsi_device.h> | 32 | #include <scsi/scsi_device.h> |
33 | #include <scsi/scsi_host.h> | 33 | #include <scsi/scsi_host.h> |
34 | #include <scsi/scsi_transport.h> | ||
34 | 35 | ||
35 | #include "scsi_priv.h" | 36 | #include "scsi_priv.h" |
36 | #include "scsi_logging.h" | 37 | #include "scsi_logging.h" |
@@ -200,7 +201,10 @@ static int scsi_add_single_device(uint host, uint channel, uint id, uint lun) | |||
200 | if (IS_ERR(shost)) | 201 | if (IS_ERR(shost)) |
201 | return PTR_ERR(shost); | 202 | return PTR_ERR(shost); |
202 | 203 | ||
203 | error = scsi_scan_host_selected(shost, channel, id, lun, 1); | 204 | if (shost->transportt->user_scan) |
205 | error = shost->transportt->user_scan(shost, channel, id, lun); | ||
206 | else | ||
207 | error = scsi_scan_host_selected(shost, channel, id, lun, 1); | ||
204 | scsi_host_put(shost); | 208 | scsi_host_put(shost); |
205 | return error; | 209 | return error; |
206 | } | 210 | } |