diff options
author | jhb <jhb@FreeBSD.org> | 2006-01-06 19:22:19 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-01-06 19:22:19 +0000 |
commit | 170b22254d46fd33c4a684276f37ca2d6aefb956 (patch) | |
tree | d2180db4affcce14d6d2578bb440ee40547b452b /sys/dev/acpica/acpi_pcib_acpi.c | |
parent | 036bca428483e5d0565cb97310cc7fcee2975d20 (diff) | |
download | FreeBSD-src-170b22254d46fd33c4a684276f37ca2d6aefb956.zip FreeBSD-src-170b22254d46fd33c4a684276f37ca2d6aefb956.tar.gz |
- 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.
Diffstat (limited to 'sys/dev/acpica/acpi_pcib_acpi.c')
-rw-r--r-- | sys/dev/acpica/acpi_pcib_acpi.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c index e83e957..0e1a352 100644 --- a/sys/dev/acpica/acpi_pcib_acpi.c +++ b/sys/dev/acpica/acpi_pcib_acpi.c @@ -107,12 +107,10 @@ static device_method_t acpi_pcib_acpi_methods[] = { {0, 0} }; -static driver_t acpi_pcib_acpi_driver = { - "pcib", - acpi_pcib_acpi_methods, - sizeof(struct acpi_hpcib_softc), -}; +static devclass_t pcib_devclass; +DEFINE_CLASS_0(pcib, acpi_pcib_acpi_driver, acpi_pcib_acpi_methods, + sizeof(struct acpi_hpcib_softc)); DRIVER_MODULE(acpi_pcib, acpi, acpi_pcib_acpi_driver, pcib_devclass, 0, 0); MODULE_DEPEND(acpi_pcib, acpi, 1, 1, 1); |