dev/sc16is752: Check return values.

Escalate a failed installation of the interrupts to the next higher
level.
This commit is contained in:
Christian Mauderer
2018-02-12 14:07:36 +01:00
parent bf7070232f
commit b2e26b7c66

View File

@@ -234,11 +234,13 @@ static bool sc16is752_first_open(
set_efr(ctx, EFR_ENHANCED_FUNC_ENABLE);
rtems_termios_set_initial_baud(tty, 115200);
sc16is752_set_attributes(base, term);
ok = sc16is752_set_attributes(base, term);
if (!ok) {
return ok;
}
(*ctx->install_irq)(ctx);
return true;
ok = (*ctx->install_irq)(ctx);
return ok;
}
static void sc16is752_last_close(