summaryrefslogtreecommitdiffstats
path: root/sys/dev/mps/mps.c
diff options
context:
space:
mode:
authormdf <mdf@FreeBSD.org>2010-10-15 15:24:59 +0000
committermdf <mdf@FreeBSD.org>2010-10-15 15:24:59 +0000
commit9a2d058f58ba6ef326a46ead3e9d1fbb500664c1 (patch)
tree28191cbd5c364b0a61a8a93e080a43efed010789 /sys/dev/mps/mps.c
parent9ee8aa4dbf4843d90a94a3475cfc54e94b2a9886 (diff)
downloadFreeBSD-src-9a2d058f58ba6ef326a46ead3e9d1fbb500664c1.zip
FreeBSD-src-9a2d058f58ba6ef326a46ead3e9d1fbb500664c1.tar.gz
Currently only opt_compat.h is included by the mps(4) driver. Also
enable /dev/mps0, which was missing from my previous patches enabling f/w upload and download. opt_compat.h issue noticed by scottl.
Diffstat (limited to 'sys/dev/mps/mps.c')
-rw-r--r--sys/dev/mps/mps.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/mps/mps.c b/sys/dev/mps/mps.c
index f872611..404b12e 100644
--- a/sys/dev/mps/mps.c
+++ b/sys/dev/mps/mps.c
@@ -924,7 +924,10 @@ mps_attach(struct mps_softc *sc)
/* Attach the subsystems so they can prepare their event masks. */
/* XXX Should be dynamic so that IM/IR and user modules can attach */
if (((error = mps_attach_log(sc)) != 0) ||
- ((error = mps_attach_sas(sc)) != 0)) {
+ ((error = mps_attach_sas(sc)) != 0) ||
+ ((error = mps_attach_user(sc)) != 0)) {
+ mps_printf(sc, "%s failed to attach all subsystems: error %d\n",
+ __func__, error);
mps_free(sc);
return (error);
}
OpenPOWER on IntegriCloud