Date: Sat, 7 Nov 2009 11:41:23 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r199015 - in head/sys: dev/ichwd modules/ichwd Message-ID: <200911071141.nA7BfNXX046817@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Sat Nov 7 11:41:23 2009 New Revision: 199015 URL: http://svn.freebsd.org/changeset/base/199015 Log: ichwd: don't attach to isa pnp device(s) by accident Reviewed by: imp, des MFC after: 1 week Modified: head/sys/dev/ichwd/ichwd.c head/sys/modules/ichwd/Makefile Modified: head/sys/dev/ichwd/ichwd.c ============================================================================== --- head/sys/dev/ichwd/ichwd.c Sat Nov 7 02:10:59 2009 (r199014) +++ head/sys/dev/ichwd/ichwd.c Sat Nov 7 11:41:23 2009 (r199015) @@ -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); } Modified: head/sys/modules/ichwd/Makefile ============================================================================== --- head/sys/modules/ichwd/Makefile Sat Nov 7 02:10:59 2009 (r199014) +++ head/sys/modules/ichwd/Makefile Sat Nov 7 11:41:23 2009 (r199015) @@ -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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911071141.nA7BfNXX046817>