aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorNate Lawson <njl@FreeBSD.org>2005-02-06 07:36:08 +0000
committerNate Lawson <njl@FreeBSD.org>2005-02-06 07:36:08 +0000
commit3045c8af3f8032af548a3e30e5172b03a5b4685f (patch)
treee918493ac7fc932ecba204af813f8a1c4ec0f795 /sys/amd64
parentf154b03b25139930b6e998966bf3b3fd37249ba9 (diff)
downloadsrc-3045c8af3f8032af548a3e30e5172b03a5b4685f.tar.gz
src-3045c8af3f8032af548a3e30e5172b03a5b4685f.zip
Staticize the legacy cpu devclasses and revert the name for the acpi_cpu
devclass. As pointed out by dfr@, devclasses don't have to share the same linkage if multiple drivers have the same name. Newbus should match the devclasses based on name and allocate non-conflicting unit numbers.
Notes
Notes: svn path=/head/; revision=141380
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/legacy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/legacy.c b/sys/amd64/amd64/legacy.c
index 51357322d7eb..112a96a521b6 100644
--- a/sys/amd64/amd64/legacy.c
+++ b/sys/amd64/amd64/legacy.c
@@ -279,7 +279,7 @@ static driver_t cpu_driver = {
cpu_methods,
1, /* no softc */
};
-devclass_t cpu_devclass;
+static devclass_t cpu_devclass;
DRIVER_MODULE(cpu, legacy, cpu_driver, cpu_devclass, 0, 0);
static device_t