summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-06-15 02:12:12 +0000
committernjl <njl@FreeBSD.org>2004-06-15 02:12:12 +0000
commit8d89806526e7859c90ca819ddd9c8186b096ec05 (patch)
treecb2ae4ad5d91cd16ca8c05f7caf1ce7c1a3c6db0
parente4e2071ab47d188ba1c9b9312ad0f9e8dc0d355a (diff)
downloadFreeBSD-src-8d89806526e7859c90ca819ddd9c8186b096ec05.zip
FreeBSD-src-8d89806526e7859c90ca819ddd9c8186b096ec05.tar.gz
We only need the devclass_find() result, not the softc.
-rw-r--r--sys/amd64/amd64/bios.c2
-rw-r--r--sys/i386/i386/bios.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/bios.c b/sys/amd64/amd64/bios.c
index 5109e4d..46c9302 100644
--- a/sys/amd64/amd64/bios.c
+++ b/sys/amd64/amd64/bios.c
@@ -556,7 +556,7 @@ pnpbios_identify(driver_t *driver, device_t parent)
return;
/* ACPI already active */
- if (devclass_get_softc(devclass_find("acpi"), 0) != NULL)
+ if (devclass_find("acpi") != NULL)
return;
/* get count of PnP devices */
diff --git a/sys/i386/i386/bios.c b/sys/i386/i386/bios.c
index 5109e4d..46c9302 100644
--- a/sys/i386/i386/bios.c
+++ b/sys/i386/i386/bios.c
@@ -556,7 +556,7 @@ pnpbios_identify(driver_t *driver, device_t parent)
return;
/* ACPI already active */
- if (devclass_get_softc(devclass_find("acpi"), 0) != NULL)
+ if (devclass_find("acpi") != NULL)
return;
/* get count of PnP devices */
OpenPOWER on IntegriCloud