DF-1623 / fix.diff
diff --git a/sys/dev/smbus/atmel_mxt/atmel_mxt.c b/sys/dev/smbus/atmel_mxt/atmel_mxt.c --- a/sys/dev/smbus/atmel_mxt/atmel_mxt.c +++ b/sys/dev/smbus/atmel_mxt/atmel_mxt.c @@ -416,7 +416,7 @@ sizeof(sc->core.info)); sc->msgprocobj = mxt_findobject(&sc->core, MXT_GEN_MESSAGEPROCESSOR); sc->cmdprocobj = mxt_findobject(&sc->core, MXT_GEN_COMMANDPROCESSOR); - if (sc->msgprocobj == NULL) { + if (sc->msgprocobj == NULL || sc->cmdprocobj == NULL) { device_printf(sc->dev, "init_device: cannot find msgproc config\n"); goto done; |