From 170b22254d46fd33c4a684276f37ca2d6aefb956 Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 6 Jan 2006 19:22:19 +0000 Subject: - Make pcib_devclass private to sys/dev/pci/pci_pci.c and change all the various pcib drivers to use their own private devclass_t variables for their modules. - Use the DEFINE_CLASS_0() macro to declare drivers for the various pcib drivers while I'm here. --- sys/powerpc/ofw/ofw_pcib_pci.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sys/powerpc') diff --git a/sys/powerpc/ofw/ofw_pcib_pci.c b/sys/powerpc/ofw/ofw_pcib_pci.c index 6307d05..4cc73c4 100644 --- a/sys/powerpc/ofw/ofw_pcib_pci.c +++ b/sys/powerpc/ofw/ofw_pcib_pci.c @@ -75,12 +75,10 @@ static device_method_t ofw_pcib_pci_methods[] = { {0, 0} }; -static driver_t ofw_pcib_pci_driver = { - "pcib", - ofw_pcib_pci_methods, - sizeof(struct pcib_softc), -}; +static devclass_t pcib_devclass; +DEFINE_CLASS_0(pcib, ofw_pcib_pci_driver, ofw_pcib_pci_methods, + sizeof(struct pcib_softc)); DRIVER_MODULE(ofw_pcib, pci, ofw_pcib_pci_driver, pcib_devclass, 0, 0); static int -- cgit v1.1