mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
2d1a798869
commit
8fcbbfe4a3
4 changed files with 5 additions and 4 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue