lkml.org 
[lkml]   [2003]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[patch][1/3] qlogic: use scsi_host_alloc instead scsi_register
From
hi,
these patches fixes qlogic_cs module loading and unloading.

--
aris

--- linux/drivers/scsi/qlogicfas.c.orig 2003-10-15 23:41:52.000000000 -0200
+++ linux/drivers/scsi/qlogicfas.c 2003-10-15 23:41:28.000000000 -0200
@@ -671,7 +671,7 @@
if (qlirq >= 0 && !request_irq(qlirq, do_ql_ihandl, 0, "qlogicfas", NULL))
host->can_queue = 1;
#endif
- hreg = scsi_register(host, 0); /* no host data */
+ hreg = scsi_host_alloc(host, 0); /* no host data */
if (!hreg)
goto err_release_mem;
hreg->io_port = qbase;
@@ -679,6 +679,7 @@
hreg->dma_channel = -1;
if (qlirq != -1)
hreg->irq = qlirq;
+ INIT_LIST_HEAD(&hreg->sht_legacy_list);

sprintf(qinfo,
"Qlogicfas Driver version 0.46, chip %02X at %03X, IRQ %d, TPdma:%d",
\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.036 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site