mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Share one devclass between ISA and PCI sections
This will ensure unit numbers will co-ordinate between them
This commit is contained in:
parent
ecc50bd485
commit
7dd17df71d
1 changed files with 3 additions and 3 deletions
|
|
@ -234,6 +234,8 @@ static struct cdevsw ${1}_cdevsw = {
|
|||
/* flags */ 0,
|
||||
/* bmaj */ -1
|
||||
};
|
||||
|
||||
static devclass_t ${1}_devclass;
|
||||
|
||||
/*****************************************\
|
||||
* ISA Attachment structures and functions
|
||||
|
|
@ -263,7 +265,6 @@ static driver_t ${1}_isa_driver = {
|
|||
sizeof (struct ${1}_softc)
|
||||
};
|
||||
|
||||
static devclass_t ${1}_devclass;
|
||||
|
||||
DRIVER_MODULE(${1}, isa, ${1}_isa_driver, ${1}_devclass, 0, 0);
|
||||
|
||||
|
|
@ -537,9 +538,8 @@ static driver_t ${1}_pci_driver = {
|
|||
sizeof(struct ${1}_softc),
|
||||
};
|
||||
|
||||
static devclass_t ${1}_pci_devclass;
|
||||
|
||||
DRIVER_MODULE(${1}, pci, ${1}_pci_driver, ${1}_pci_devclass, 0, 0);
|
||||
DRIVER_MODULE(${1}, pci, ${1}_pci_driver, ${1}_devclass, 0, 0);
|
||||
|
||||
static struct _pcsid
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue