[PATCH] unbreak ecoscsi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
---

 drivers/scsi/arm/ecoscsi.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

--- a/drivers/scsi/arm/ecoscsi.c
+++ b/drivers/scsi/arm/ecoscsi.c
@@ -175,7 +175,7 @@ static struct Scsi_Host *host;
 static int __init ecoscsi_init(void)
 {
 
-	host = scsi_host_alloc(tpnt, sizeof(struct NCR5380_hostdata));
+	host = scsi_host_alloc(&ecoscsi_template, sizeof(struct NCR5380_hostdata));
 	if (!host)
 		return 0;
 
@@ -218,14 +218,13 @@ static void __exit ecoscsi_exit(void)
 {
 	scsi_remove_host(host);
 
-	if (shpnt->irq != IRQ_NONE)
-		free_irq(shpnt->irq, NULL);
+	if (host->irq != IRQ_NONE)
+		free_irq(host->irq, NULL);
 	NCR5380_exit(host);
-	if (shpnt->io_port)
-		release_region(shpnt->io_port, shpnt->n_io_port);
+	if (host->io_port)
+		release_region(host->io_port, host->n_io_port);
 
 	scsi_host_put(host);
-	return 0;
 }
 
 module_init(ecoscsi_init);

-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux