summaryrefslogtreecommitdiffstats
path: root/sys/dev/asmc
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2008-04-11 17:16:19 +0000
committerrpaulo <rpaulo@FreeBSD.org>2008-04-11 17:16:19 +0000
commite8c850afc55f731ffcd55032b42500885db1bc8a (patch)
treeb92cb3fb71426e5eaa15b0bd8200cd745831732c /sys/dev/asmc
parent68d15cd6e6b5f9f7e32d3dd9ba4361d58c4578b9 (diff)
downloadFreeBSD-src-e8c850afc55f731ffcd55032b42500885db1bc8a.zip
FreeBSD-src-e8c850afc55f731ffcd55032b42500885db1bc8a.tar.gz
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 <ianf at clue.co.za>
Diffstat (limited to 'sys/dev/asmc')
-rw-r--r--sys/dev/asmc/asmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/asmc/asmc.c b/sys/dev/asmc/asmc.c
index ae39c3e..d9dcd2e 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);
OpenPOWER on IntegriCloud