public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix an aha1740 merge error
@ 2003-06-27 17:50 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2003-06-27 17:50 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi

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;
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-27 17:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-27 17:50 [PATCH] fix an aha1740 merge error Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox