diff options
author | dfr <dfr@FreeBSD.org> | 2003-11-01 12:45:03 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2003-11-01 12:45:03 +0000 |
commit | 8b3f3dcbb975b76c00b79f54a91fc4775625dc72 (patch) | |
tree | 2b1117067bae65b66ba67cd6268215c92bd92506 /sys/dev/pci/pci.c | |
parent | 8cb7424022e6ebfe3e45c6eb3b2ef6c8802ac94e (diff) | |
download | FreeBSD-src-8b3f3dcbb975b76c00b79f54a91fc4775625dc72.zip FreeBSD-src-8b3f3dcbb975b76c00b79f54a91fc4775625dc72.tar.gz |
Make the cardbus driver a derived class of the pci driver. In theory, this
should allow many of the pci methods to be re-staticised.
Diffstat (limited to 'sys/dev/pci/pci.c')
-rw-r--r-- | sys/dev/pci/pci.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index a7f320e..60e2864 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -125,11 +125,7 @@ static device_method_t pci_methods[] = { { 0, 0 } }; -static driver_t pci_driver = { - "pci", - pci_methods, - 0, /* no softc */ -}; +DEFINE_CLASS_0(pci, pci_driver, pci_methods, 0); devclass_t pci_devclass; DRIVER_MODULE(pci, pcib, pci_driver, pci_devclass, pci_modevent, 0); |