aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pci/pci.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2006-01-20 22:00:50 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2006-01-20 22:00:50 +0000
commit5aa58b3e8fc5d1bdc1d58bbce8a2eebb4a8ae7b6 (patch)
tree67aedc20f08bc676c331b82673a4e0a3508fc0e6 /sys/dev/pci/pci.c
parent267ec43593e9197b42f841ebb466538079bd06b8 (diff)
downloadsrc-5aa58b3e8fc5d1bdc1d58bbce8a2eebb4a8ae7b6.tar.gz
src-5aa58b3e8fc5d1bdc1d58bbce8a2eebb4a8ae7b6.zip
Make the 'pci_devclass' pointer variable private (drivers really shouldn't
share devclass pointers, a mistake I've encouraged in the past) and move the declaration of the pci_driver kobj class from cardbus.c to pci_private.h so that other drivers can inherit from pci_driver.
Notes
Notes: svn path=/head/; revision=154599
Diffstat (limited to 'sys/dev/pci/pci.c')
-rw-r--r--sys/dev/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 89facc8cca27..08fd99549452 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -137,7 +137,7 @@ static device_method_t pci_methods[] = {
DEFINE_CLASS_0(pci, pci_driver, pci_methods, 0);
-devclass_t pci_devclass;
+static devclass_t pci_devclass;
DRIVER_MODULE(pci, pcib, pci_driver, pci_devclass, pci_modevent, 0);
MODULE_VERSION(pci, 1);