diff options
Diffstat (limited to 'drivers/scsi/ncr53c8xx.c')
-rw-r--r-- | drivers/scsi/ncr53c8xx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/ncr53c8xx.c b/drivers/scsi/ncr53c8xx.c index 9a4f576c0d5e..243470936fab 100644 --- a/drivers/scsi/ncr53c8xx.c +++ b/drivers/scsi/ncr53c8xx.c | |||
@@ -3669,7 +3669,7 @@ static int ncr_queue_command (struct ncb *np, struct scsi_cmnd *cmd) | |||
3669 | /* | 3669 | /* |
3670 | ** select | 3670 | ** select |
3671 | */ | 3671 | */ |
3672 | cp->phys.select.sel_id = sdev->id; | 3672 | cp->phys.select.sel_id = sdev_id(sdev); |
3673 | cp->phys.select.sel_scntl3 = tp->wval; | 3673 | cp->phys.select.sel_scntl3 = tp->wval; |
3674 | cp->phys.select.sel_sxfer = tp->sval; | 3674 | cp->phys.select.sel_sxfer = tp->sval; |
3675 | /* | 3675 | /* |
@@ -4820,7 +4820,7 @@ static void ncr_set_sync_wide_status (struct ncb *np, u_char target) | |||
4820 | */ | 4820 | */ |
4821 | for (cp = np->ccb; cp; cp = cp->link_ccb) { | 4821 | for (cp = np->ccb; cp; cp = cp->link_ccb) { |
4822 | if (!cp->cmd) continue; | 4822 | if (!cp->cmd) continue; |
4823 | if (cp->cmd->device->id != target) continue; | 4823 | if (scmd_id(cp->cmd) != target) continue; |
4824 | #if 0 | 4824 | #if 0 |
4825 | cp->sync_status = tp->sval; | 4825 | cp->sync_status = tp->sval; |
4826 | cp->wide_status = tp->wval; | 4826 | cp->wide_status = tp->wval; |
@@ -4844,7 +4844,7 @@ static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char s | |||
4844 | u_char target = INB (nc_sdid) & 0x0f; | 4844 | u_char target = INB (nc_sdid) & 0x0f; |
4845 | u_char idiv; | 4845 | u_char idiv; |
4846 | 4846 | ||
4847 | BUG_ON(target != (cmd->device->id & 0xf)); | 4847 | BUG_ON(target != (scmd_id(cmd) & 0xf)); |
4848 | 4848 | ||
4849 | tp = &np->target[target]; | 4849 | tp = &np->target[target]; |
4850 | 4850 | ||
@@ -4902,7 +4902,7 @@ static void ncr_setwide (struct ncb *np, struct ccb *cp, u_char wide, u_char ack | |||
4902 | u_char scntl3; | 4902 | u_char scntl3; |
4903 | u_char sxfer; | 4903 | u_char sxfer; |
4904 | 4904 | ||
4905 | BUG_ON(target != (cmd->device->id & 0xf)); | 4905 | BUG_ON(target != (scmd_id(cmd) & 0xf)); |
4906 | 4906 | ||
4907 | tp = &np->target[target]; | 4907 | tp = &np->target[target]; |
4908 | tp->widedone = wide+1; | 4908 | tp->widedone = wide+1; |