> Yuck. How about something that doesn't look so PowerPC-specific? > You're contaminating non-arch drivers with arch-specific code. > > if(has_isa_bus) > return -ENODEV; > > Better yet, find a way to flag the driver init functions > so that they don't even execute until an ISA bus is found.
Actually, it's a bit nastier, since we have cases like 8250 serial which we still want to be able to use on pmac for pcmcia... (Though I think with the current version, the simple fact of loading the driver it starts tapping those legacy IOs...) has_isa_bus may not perfectly exact (a pmac will not have an ISA bus, but you can have a legacy serial card on the PCI bus, or you can have a 8250 compatible uart on a non-ISA bus). At this point, this is a real can of worms. Ben.

