From 8b3f3dcbb975b76c00b79f54a91fc4775625dc72 Mon Sep 17 00:00:00 2001 From: dfr Date: Sat, 1 Nov 2003 12:45:03 +0000 Subject: 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. --- sys/dev/pci/pci.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sys/dev/pci/pci.c') 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); -- cgit v1.1