MFC r199015: ichwd: don't attach to isa pnp device(s) by accident

This commit is contained in:
avg 2009-11-17 09:35:13 +00:00
parent f167c03529
commit 08a2f851da
2 changed files with 5 additions and 2 deletions

View File

@ -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);
}

View File

@ -3,6 +3,6 @@
.PATH: ${.CURDIR}/../../dev/ichwd
KMOD= ichwd
SRCS= ichwd.c device_if.h bus_if.h pci_if.h
SRCS= ichwd.c device_if.h bus_if.h pci_if.h isa_if.h
.include <bsd.kmod.mk>