From e8c850afc55f731ffcd55032b42500885db1bc8a Mon Sep 17 00:00:00 2001 From: rpaulo Date: Fri, 11 Apr 2008 17:16:19 +0000 Subject: [PATCH] Don't call acpi_disabled() because we are not part of the acpi.ko module. Instead, use resource_disabled() that doesn't depend on any module. Noticed by: Ian FREISLICH --- sys/dev/asmc/asmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/asmc/asmc.c b/sys/dev/asmc/asmc.c index ae39c3e7f486..d9dcd2e65a55 100644 --- a/sys/dev/asmc/asmc.c +++ b/sys/dev/asmc/asmc.c @@ -254,7 +254,7 @@ asmc_probe(device_t dev) { struct asmc_model *model; - if (acpi_disabled("asmc")) + if (resource_disabled("asmc", 0)) return (ENXIO); if (ACPI_ID_PROBE(device_get_parent(dev), dev, asmc_ids) == NULL) return (ENXIO);