diff options
author | sbruno <sbruno@FreeBSD.org> | 2013-07-30 18:54:24 +0000 |
---|---|---|
committer | sbruno <sbruno@FreeBSD.org> | 2013-07-30 18:54:24 +0000 |
commit | f0d64c6c26ec6d931ad46a3987d622a29b82591f (patch) | |
tree | 4bcdffd49a3b1d9e43b0af59d29874364f40dacc | |
parent | a8facfe26bcbcabeeac469efe49583c0bb3a63f1 (diff) | |
download | FreeBSD-src-f0d64c6c26ec6d931ad46a3987d622a29b82591f.zip FreeBSD-src-f0d64c6c26ec6d931ad46a3987d622a29b82591f.tar.gz |
Check for ipmi_attached in ipmi_isa_probe as a suggested alternative to
ipmi_isa_attach. This keeps unintended but harmless noise about "ipmi1"
from appearing in the boot up sequence.
Submitted by: jbh@ (suggested by)
Sponsored by: Yahoo! Inc.
-rw-r--r-- | sys/dev/ipmi/ipmi_isa.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/ipmi/ipmi_isa.c b/sys/dev/ipmi/ipmi_isa.c index 9d3f9f3..fc66ab1 100644 --- a/sys/dev/ipmi/ipmi_isa.c +++ b/sys/dev/ipmi/ipmi_isa.c @@ -78,6 +78,14 @@ static int ipmi_isa_probe(device_t dev) { + /* + * Give other drivers precedence. Unfortunately, this doesn't + * work if we have an SMBIOS table that duplicates a PCI device + * that's later on the bus than the PCI-ISA bridge. + */ + if (ipmi_attached) + return (ENXIO); + /* Skip any PNP devices. */ if (isa_get_logicalid(dev) != 0) return (ENXIO); @@ -175,14 +183,6 @@ ipmi_isa_attach(device_t dev) !ipmi_hint_identify(dev, &info)) return (ENXIO); - /* - * Give other drivers precedence. Unfortunately, this doesn't - * work if we have an SMBIOS table that duplicates a PCI device - * that's later on the bus than the PCI-ISA bridge. - */ - if (ipmi_attached) - return (EBUSY); - switch (info.iface_type) { case KCS_MODE: count = 2; |