Re: [patch] qlogic_cs: init legacy_hosts

From: Christoph Hellwig
Date: Tue Oct 21 2003 - 04:59:59 EST


On Tue, Oct 21, 2003 at 07:28:58AM -0200, Aristeu Sergio Rozanski Filho wrote:
> hi Christoph,
> > > @@ -249,6 +249,8 @@
> > > else
> > > qlogicfas_preset(link->io.BasePort1, link->irq.AssignedIRQ);
> > >
> > > + INIT_LIST_HEAD(&qlogicfas_driver_template.legacy_hosts);
> > > +
> >
> > qlogic_cs is a newstyle driver, no need to initialize it.
> then it needs more work. without initializing it i get an oops in
> scsi_register(). i guess the qlogic_cs is an oldstyle driver by now
> because it uses qlogicfas template and functions.

why do you call scsi_register at all? You need to uses scsi_host_alloc in
the pcmcia case.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/