aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/gdth.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2006-06-10 12:01:03 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-06-10 17:24:40 -0400
commitbeb40487508290f5d6565598c60a3f44261beef2 (patch)
treeca63df47d8db8f1b1161b5db094b0a9c2b541d91 /drivers/scsi/gdth.c
parent1951d099dfd8fa529e86f4ac81d1a34554fbe302 (diff)
[SCSI] remove scsi_request infrastructure
With Achim patch the last user (gdth) is switched away from scsi_request so we an kill it now. Also disables some code in i2o_scsi that was broken since the sg driver stopped using scsi_requests. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/gdth.c')
-rw-r--r--drivers/scsi/gdth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c
index fc4d9f61cf3d..76071a158306 100644
--- a/drivers/scsi/gdth.c
+++ b/drivers/scsi/gdth.c
@@ -716,8 +716,8 @@ static void gdth_scsi_done(struct scsi_cmnd *scp)
716{ 716{
717 TRACE2(("gdth_scsi_done()\n")); 717 TRACE2(("gdth_scsi_done()\n"));
718 718
719 if (scp->sc_request) 719 if (scp->request)
720 complete((struct completion *)scp->sc_request); 720 complete((struct completion *)scp->request);
721} 721}
722 722
723int __gdth_execute(struct scsi_device *sdev, gdth_cmd_str *gdtcmd, char *cmnd, 723int __gdth_execute(struct scsi_device *sdev, gdth_cmd_str *gdtcmd, char *cmnd,
@@ -732,8 +732,8 @@ int __gdth_execute(struct scsi_device *sdev, gdth_cmd_str *gdtcmd, char *cmnd,
732 return -ENOMEM; 732 return -ENOMEM;
733 memset(scp, 0, sizeof(*scp)); 733 memset(scp, 0, sizeof(*scp));
734 scp->device = sdev; 734 scp->device = sdev;
735 /* use sc_request field to save the ptr. to completion struct. */ 735 /* use request field to save the ptr. to completion struct. */
736 scp->sc_request = (struct scsi_request *)&wait; 736 scp->request = (struct request *)&wait;
737 scp->timeout_per_command = timeout*HZ; 737 scp->timeout_per_command = timeout*HZ;
738 scp->request_buffer = gdtcmd; 738 scp->request_buffer = gdtcmd;
739 scp->cmd_len = 12; 739 scp->cmd_len = 12;