diff options
author | scottl <scottl@FreeBSD.org> | 2002-09-22 23:03:31 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2002-09-22 23:03:31 +0000 |
commit | 95e18ba243a57de3bee4d8cb40626dab1d9588dc (patch) | |
tree | 6d661d888b499e1d8213fc9a10999aaecf1f36b8 /sys/dev/aic7xxx/ahc_pci.c | |
parent | 0641b68d4f3da387bf86ff4274d06f72bc8f2733 (diff) | |
download | FreeBSD-src-95e18ba243a57de3bee4d8cb40626dab1d9588dc.zip FreeBSD-src-95e18ba243a57de3bee4d8cb40626dab1d9588dc.tar.gz |
The ahc driver should only have one devclass, not one for each bus
attachment.
Submitted by: too many people to count
MFC after: 3 days
Diffstat (limited to 'sys/dev/aic7xxx/ahc_pci.c')
-rw-r--r-- | sys/dev/aic7xxx/ahc_pci.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/aic7xxx/ahc_pci.c b/sys/dev/aic7xxx/ahc_pci.c index 0ea4cc1..c5e6983 100644 --- a/sys/dev/aic7xxx/ahc_pci.c +++ b/sys/dev/aic7xxx/ahc_pci.c @@ -50,15 +50,13 @@ static device_method_t ahc_pci_device_methods[] = { }; static driver_t ahc_pci_driver = { - "ahc_pci", + "ahc", ahc_pci_device_methods, sizeof(struct ahc_softc) }; -static devclass_t ahc_pci_devclass; - -DRIVER_MODULE(ahc_pci, pci, ahc_pci_driver, ahc_pci_devclass, 0, 0); -DRIVER_MODULE(ahc_pci, cardbus, ahc_pci_driver, ahc_pci_devclass, 0, 0); +DRIVER_MODULE(ahc_pci, pci, ahc_pci_driver, ahc_devclass, 0, 0); +DRIVER_MODULE(ahc_pci, cardbus, ahc_pci_driver, ahc_devclass, 0, 0); MODULE_DEPEND(ahc_pci, ahc, 1, 1, 1); MODULE_VERSION(ahc_pci, 1); |