summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/src/uts/common/io/mlxcx/mlxcx.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr/src/uts/common/io/mlxcx/mlxcx.c b/usr/src/uts/common/io/mlxcx/mlxcx.c
index 90964d2fd1..9aae5244de 100644
--- a/usr/src/uts/common/io/mlxcx/mlxcx.c
+++ b/usr/src/uts/common/io/mlxcx/mlxcx.c
@@ -2874,10 +2874,14 @@ mlxcx_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
}
mlxp->mlx_attach |= MLXCX_ATTACH_CHKTIMERS;
- if (!mlxcx_setup_sensors(mlxp)) {
- goto err;
+ /*
+ * Some devices may not have a working temperature sensor; however,
+ * there isn't a great way for us to know. We shouldn't fail attach if
+ * this doesn't work.
+ */
+ if (mlxcx_setup_sensors(mlxp)) {
+ mlxp->mlx_attach |= MLXCX_ATTACH_SENSORS;
}
- mlxp->mlx_attach |= MLXCX_ATTACH_SENSORS;
/*
* Finally, tell MAC that we exist!