Commit d1e4c9c5 authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by James Bottomley

[SCSI] scsi_debug: use shost_priv macro

Signed-off-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: default avatarDouglas Gilbert <dougg@torque.net>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 96ad0dfe
...@@ -2076,8 +2076,8 @@ static struct sdebug_dev_info * devInfoReg(struct scsi_device * sdev) ...@@ -2076,8 +2076,8 @@ static struct sdebug_dev_info * devInfoReg(struct scsi_device * sdev)
if (devip) if (devip)
return devip; return devip;
sdbg_host = *(struct sdebug_host_info **) sdev->host->hostdata; sdbg_host = *(struct sdebug_host_info **)shost_priv(sdev->host);
if(! sdbg_host) { if (!sdbg_host) {
printk(KERN_ERR "Host info NULL\n"); printk(KERN_ERR "Host info NULL\n");
return NULL; return NULL;
} }
...@@ -2204,7 +2204,7 @@ static int scsi_debug_bus_reset(struct scsi_cmnd * SCpnt) ...@@ -2204,7 +2204,7 @@ static int scsi_debug_bus_reset(struct scsi_cmnd * SCpnt)
printk(KERN_INFO "scsi_debug: bus_reset\n"); printk(KERN_INFO "scsi_debug: bus_reset\n");
++num_bus_resets; ++num_bus_resets;
if (SCpnt && ((sdp = SCpnt->device)) && ((hp = sdp->host))) { if (SCpnt && ((sdp = SCpnt->device)) && ((hp = sdp->host))) {
sdbg_host = *(struct sdebug_host_info **) hp->hostdata; sdbg_host = *(struct sdebug_host_info **)shost_priv(hp);
if (sdbg_host) { if (sdbg_host) {
list_for_each_entry(dev_info, list_for_each_entry(dev_info,
&sdbg_host->dev_info_list, &sdbg_host->dev_info_list,
......
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