diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-03-02 04:30:18 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-07 13:15:41 -0400 |
commit | d1e4c9c57c2ed4722795443db22a5d813cd4f0e5 (patch) | |
tree | 697cf76497f87fe3afb9b2ea9b92cf16c953ef77 /drivers/scsi/scsi_debug.c | |
parent | 96ad0dfe8388428acc10c1bd96573f893fc79439 (diff) |
[SCSI] scsi_debug: use shost_priv macro
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Douglas Gilbert <dougg@torque.net>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/scsi_debug.c')
-rw-r--r-- | drivers/scsi/scsi_debug.c | 6 |
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, |