diff --git a/[refs] b/[refs] index 03eedff0cb84..e457baf18703 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b7b8de087384cc1954a8cd075af3f9e5977caa2e +refs/heads/master: 568389c257fa7d74ce36c2f78bad31965fded4cf diff --git a/trunk/drivers/serial/apbuart.c b/trunk/drivers/serial/apbuart.c index 2e84d9c3d419..a30bb9620c9b 100644 --- a/trunk/drivers/serial/apbuart.c +++ b/trunk/drivers/serial/apbuart.c @@ -520,11 +520,12 @@ static struct console grlib_apbuart_console = { }; -static void grlib_apbuart_configure(void); +static int grlib_apbuart_configure(void); static int __init apbuart_console_init(void) { - grlib_apbuart_configure(); + if (grlib_apbuart_configure()) + return -ENODEV; register_console(&grlib_apbuart_console); return 0; }