Skip to contentSkip to conversation

fix an aha1740 merge error

PATCH New Christoph Hellwig 1 participant 1 message Jun 27, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix an aha1740 merge error

it should use scsi_host_alloc/scsi_host_put now.

drivers/scsi/aha1740.c +2 -2
diff -Nru a/drivers/scsi/aha1740.c b/drivers/scsi/aha1740.c
@@ -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;
 }