The pci and isa drivers were meant to share the same devclass but

the devclass definitions were all wrong so they had their own private
ones with the same name.

Fix it so they all use the same global devclass.
This commit is contained in:
Paul Richards 2000-12-29 11:59:41 +00:00
parent 2d1a798869
commit 8fcbbfe4a3
4 changed files with 5 additions and 4 deletions

View file

@ -90,6 +90,8 @@
#include <dev/lnc/if_lncvar.h>
#include <dev/lnc/if_lncreg.h>
devclass_t lnc_devclass;
static char const * const nic_ident[] = {
"Unknown",
"BICC",

View file

@ -310,6 +310,4 @@ static driver_t lnc_isa_driver = {
sizeof(struct lnc_softc),
};
static devclass_t lnc_devclass;
DRIVER_MODULE(lnc_isa, isa, lnc_isa_driver, lnc_devclass, 0, 0);

View file

@ -217,6 +217,4 @@ static driver_t lnc_pci_driver = {
sizeof(struct lnc_softc),
};
static devclass_t lnc_devclass;
DRIVER_MODULE(lnc_pci, pci, lnc_pci_driver, lnc_devclass, 0, 0);

View file

@ -253,4 +253,7 @@ struct host_ring_entry {
/* Functional declarations */
extern int lnc_attach_common __P((device_t));
extern void lnc_stop __P((struct lnc_softc *));
/* Variable declarations */
extern driver_intr_t lncintr;
extern devclass_t lnc_devclass;