aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/asmc
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2012-10-22 13:06:09 +0000
committerEitan Adler <eadler@FreeBSD.org>2012-10-22 13:06:09 +0000
commita8de37b0244d1101e634922d018579cc3073318f (patch)
tree07e19b18864f030899e170c445daf41bd547c6d1 /sys/dev/asmc
parent7994d24f0c2194c99c01a9f8b3c97b08b4984c46 (diff)
Notes
Diffstat (limited to 'sys/dev/asmc')
-rw-r--r--sys/dev/asmc/asmc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/asmc/asmc.c b/sys/dev/asmc/asmc.c
index 8c25679e8062..5fc8c4128cb5 100644
--- a/sys/dev/asmc/asmc.c
+++ b/sys/dev/asmc/asmc.c
@@ -291,6 +291,8 @@ asmc_probe(device_t dev)
{
struct asmc_model *model;
+ if (resource_disabled("asmc", 0))
+ return (ENXIO);
if (ACPI_ID_PROBE(device_get_parent(dev), dev, asmc_ids) == NULL)
return (ENXIO);