From: Matthew Wilcox Date: Tue, 25 Sep 2007 16:42:02 +0000 (-0400) Subject: [SCSI] pluto: Don't abuse ->done for internal commands X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1d0c7c8dcf289557f13b6b0f6d71b6a03b12b747;p=mv-sheeva.git [SCSI] pluto: Don't abuse ->done for internal commands We can simply call the internal done function directly Signed-off-by: Matthew Wilcox Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/pluto.c b/drivers/scsi/pluto.c index e2213894917..0363c1cd68c 100644 --- a/drivers/scsi/pluto.c +++ b/drivers/scsi/pluto.c @@ -160,7 +160,6 @@ int __init pluto_detect(struct scsi_host_template *tpnt) SCpnt->request->cmd_flags &= ~REQ_STARTED; - SCpnt->done = pluto_detect_done; SCpnt->request_bufflen = 256; SCpnt->request_buffer = fcs[i].inquiry; PLD(("set up %d %08lx\n", i, (long)SCpnt)) @@ -195,7 +194,7 @@ int __init pluto_detect(struct scsi_host_template *tpnt) SCpnt = &(fcs[i].cmd); /* Let FC mid-level free allocated resources */ - SCpnt->done (SCpnt); + pluto_detect_scsi_done(SCpnt); if (!SCpnt->result) { struct pluto_inquiry *inq;