diff options
| author | Andriy Gapon <avg@FreeBSD.org> | 2009-11-07 11:41:23 +0000 |
|---|---|---|
| committer | Andriy Gapon <avg@FreeBSD.org> | 2009-11-07 11:41:23 +0000 |
| commit | ede807c429aef9b2e1b418955205297345db8127 (patch) | |
| tree | 6d75614155d02b46e5966d80e5f715a55b65e489 /sys/dev/ichwd | |
| parent | 03e78bd096d16aa401a981a8ee4bf281b64a59be (diff) | |
Notes
Diffstat (limited to 'sys/dev/ichwd')
| -rw-r--r-- | sys/dev/ichwd/ichwd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ichwd/ichwd.c b/sys/dev/ichwd/ichwd.c index 78d9816f156d..028c50e98420 100644 --- a/sys/dev/ichwd/ichwd.c +++ b/sys/dev/ichwd/ichwd.c @@ -68,6 +68,7 @@ __FBSDID("$FreeBSD$"); #include <machine/resource.h> #include <sys/watchdog.h> +#include <isa/isavar.h> #include <dev/pci/pcivar.h> #include <dev/ichwd/ichwd.h> @@ -393,7 +394,9 @@ static int ichwd_probe(device_t dev) { - (void)dev; + /* Do not claim some ISA PnP device by accident. */ + if (isa_get_logicalid(dev) != 0) + return (ENXIO); return (0); } |
