Re: 2.4.8-pre4, lots of compile warnings

Christoph Hellwig (hch@ns.caldera.de)
Mon, 6 Aug 2001 14:13:50 +0200


In article <Pine.LNX.4.33.0108061155480.8689-100000@chaos.tp1.ruhr-uni-bochum.de> you wrote:
> On Mon, 6 Aug 2001, Keith Owens wrote:
>
>> Add attribute unused plus a BIG comment saying that the code should be
>> moved to the new pci infrastructure ASAP. Add the code to the janitor
>> list.
>
> Moving to the new pci infrastructure is not an option for the
> drivers/isdn/hisax driver. For historical reasons, it doesn't use
> autoprobing, changing that now will break initializiation on probably
> every distribution out there (if it supports ISDN).

There is another way to at lest use the pci tables without going for
the full hotplug API.

Just replace code like:

if ((dev_avm = pci_find_device(PCI_VENDOR_ID_AVM,
PCI_DEVICE_ID_AVM_A1, dev_avm))) {
/* initialize card */
}

with something like:

pci_for_each_dev(dev_avm) {
if (pci_match_device(avm_pci_tbl, dev_avm)) {
/* initialize card */
}
}

This will need per-card instead of the current global hisax pci tables,
but I think it's a good cleanup.

> I'll break this compatibility in 2.5, though.

Nice! Does this mean the hisax subdrivers will finally be able to be
individual modules? Are there also other ISDN changes planned, e.g.
going from the global cli/sti to better locking schemes?

Christoph

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