aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ipmi
diff options
context:
space:
mode:
authorSean Bruno <sbruno@FreeBSD.org>2013-07-30 18:54:24 +0000
committerSean Bruno <sbruno@FreeBSD.org>2013-07-30 18:54:24 +0000
commitef3103bba8e18464e0f3872c4363c130439675a5 (patch)
tree4bcdffd49a3b1d9e43b0af59d29874364f40dacc /sys/dev/ipmi
parentde3e1e6590b26386a2ee9813dbe7d47bd88384ef (diff)
downloadsrc-ef3103bba8e18464e0f3872c4363c130439675a5.tar.gz
src-ef3103bba8e18464e0f3872c4363c130439675a5.zip
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.
Notes
Notes: svn path=/head/; revision=253813
Diffstat (limited to 'sys/dev/ipmi')
-rw-r--r--sys/dev/ipmi/ipmi_isa.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/ipmi/ipmi_isa.c b/sys/dev/ipmi/ipmi_isa.c
index 9d3f9f34c2f2..fc66ab1840e5 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;