This is still not sufficient. In 2.3, you want to be able to
initialize/deinitialize a single card driven by a driver, otherwise stuff
like hot plug is not possible. So just marking an init function has not much
value, really.
Every driver should announce in some special sections what kind of devices
it drives (bus types, and bus ids: PCI ids, SBUS strings, ISA io-ports,
etc.), some detection routine and init/cleanup. Now you could do something
like initialize PCI bus N and it would do it. The buses themselves should
have control structures as well.
Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
UltraLinux | http://ultra.linux.cz/ | http://ultra.penguin.cz/
Linux version 2.2.7 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/