public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: James.Bottomley@steeleye.com
Cc: linux-scsi@vger.kernel.org
Subject: [PATCH] fix an aha1740 merge error
Date: Fri, 27 Jun 2003 19:50:36 +0200	[thread overview]
Message-ID: <20030627175036.GA20040@lst.de> (raw)

it should use scsi_host_alloc/scsi_host_put now.


diff -Nru a/drivers/scsi/aha1740.c b/drivers/scsi/aha1740.c
--- a/drivers/scsi/aha1740.c	Thu Jun 26 21:56:47 2003
+++ b/drivers/scsi/aha1740.c	Thu Jun 26 21:56:47 2003
@@ -606,7 +606,7 @@
 	       dev->name, slotbase, irq_level);
 	printk(KERN_INFO "aha174x: Extended translation %sabled.\n",
 	       translation ? "en" : "dis");
-	shpnt = scsi_register(&aha1740_template,
+	shpnt = scsi_host_alloc(&aha1740_template,
 			      sizeof(struct aha1740_hostdata));
 	if(shpnt == NULL)
 		goto err_release;
@@ -658,7 +658,7 @@
 			  sizeof (host->ecb), DMA_BIDIRECTIONAL);
 	release_region (shpnt->io_port, SLOTSIZE);
 
-	scsi_unregister (shpnt);
+	scsi_host_put (shpnt);
 	
 	return 0;
 }

                 reply	other threads:[~2003-06-27 17:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030627175036.GA20040@lst.de \
    --to=hch@lst.de \
    --cc=James.Bottomley@steeleye.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox