* [patch] qlogic: don't use scsi_{register,unregister} for pcmcia
@ 2003-10-24 1:13 Aristeu Sergio Rozanski Filho
0 siblings, 0 replies; only message in thread
From: Aristeu Sergio Rozanski Filho @ 2003-10-24 1:13 UTC (permalink / raw)
To: James.Bottomley; +Cc: linux-scsi, Christoph Hellwig
[-- Attachment #1: Type: text/plain, Size: 10 bytes --]
--
aris
[-- Attachment #2: qlogic-pcmcia_uses_scsi_host_alloc.patch --]
[-- Type: text/plain, Size: 804 bytes --]
--- linux/drivers/scsi/qlogicfas.c.orig 2003-10-22 22:25:19.000000000 -0200
+++ linux/drivers/scsi/qlogicfas.c 2003-10-22 21:26:59.000000000 -0200
@@ -650,7 +650,11 @@
} else
printk(KERN_INFO "Ql: Using preset IRQ %d\n", qlirq);
+#ifdef PCMCIA
+ hreg = scsi_host_alloc(host, 0);
+#else
hreg = scsi_register(host, 0); /* no host data */
+#endif
if (!hreg)
goto err_release_mem;
hreg->io_port = qbase;
--- linux/drivers/scsi/pcmcia/qlogic_stub.c.orig 2003-10-20 21:04:02.000000000 -0200
+++ linux/drivers/scsi/pcmcia/qlogic_stub.c 2003-10-22 22:24:34.000000000 -0200
@@ -288,7 +288,7 @@
CardServices(ReleaseIO, link->handle, &link->io);
CardServices(ReleaseIRQ, link->handle, &link->irq);
- scsi_unregister(info->host);
+ scsi_host_put(info->host);
link->state &= ~DEV_CONFIG;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-10-24 1:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-24 1:13 [patch] qlogic: don't use scsi_{register,unregister} for pcmcia Aristeu Sergio Rozanski Filho
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.