aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/scsi_debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c
index c14c9b19213a..3abd2861a58a 100644
--- a/drivers/scsi/scsi_debug.c
+++ b/drivers/scsi/scsi_debug.c
@@ -2076,8 +2076,8 @@ static struct sdebug_dev_info * devInfoReg(struct scsi_device * sdev)
2076 2076
2077 if (devip) 2077 if (devip)
2078 return devip; 2078 return devip;
2079 sdbg_host = *(struct sdebug_host_info **) sdev->host->hostdata; 2079 sdbg_host = *(struct sdebug_host_info **)shost_priv(sdev->host);
2080 if(! sdbg_host) { 2080 if (!sdbg_host) {
2081 printk(KERN_ERR "Host info NULL\n"); 2081 printk(KERN_ERR "Host info NULL\n");
2082 return NULL; 2082 return NULL;
2083 } 2083 }
@@ -2204,7 +2204,7 @@ static int scsi_debug_bus_reset(struct scsi_cmnd * SCpnt)
2204 printk(KERN_INFO "scsi_debug: bus_reset\n"); 2204 printk(KERN_INFO "scsi_debug: bus_reset\n");
2205 ++num_bus_resets; 2205 ++num_bus_resets;
2206 if (SCpnt && ((sdp = SCpnt->device)) && ((hp = sdp->host))) { 2206 if (SCpnt && ((sdp = SCpnt->device)) && ((hp = sdp->host))) {
2207 sdbg_host = *(struct sdebug_host_info **) hp->hostdata; 2207 sdbg_host = *(struct sdebug_host_info **)shost_priv(hp);
2208 if (sdbg_host) { 2208 if (sdbg_host) {
2209 list_for_each_entry(dev_info, 2209 list_for_each_entry(dev_info,
2210 &sdbg_host->dev_info_list, 2210 &sdbg_host->dev_info_list,