MFC r199015: ichwd: don't attach to isa pnp device(s) by accident
This commit is contained in:
parent
f167c03529
commit
08a2f851da
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user