aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/asmc
diff options
context:
space:
mode:
authorRui Paulo <rpaulo@FreeBSD.org>2008-04-11 17:16:19 +0000
committerRui Paulo <rpaulo@FreeBSD.org>2008-04-11 17:16:19 +0000
commit9cb3ef6efe444a9730306e57f9b372de22800c51 (patch)
treeb92cb3fb71426e5eaa15b0bd8200cd745831732c /sys/dev/asmc
parent429cc1009b221987e96cf58ad9e757cbfa6f52e4 (diff)
downloadsrc-9cb3ef6efe444a9730306e57f9b372de22800c51.tar.gz
src-9cb3ef6efe444a9730306e57f9b372de22800c51.zip
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>
Notes
Notes: svn path=/head/; revision=178122
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 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);