diff options
-rw-r--r-- | drivers/serial/apbuart.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/serial/apbuart.c b/drivers/serial/apbuart.c index 2e84d9c3d419..a30bb9620c9b 100644 --- a/drivers/serial/apbuart.c +++ b/drivers/serial/apbuart.c | |||
@@ -520,11 +520,12 @@ static struct console grlib_apbuart_console = { | |||
520 | }; | 520 | }; |
521 | 521 | ||
522 | 522 | ||
523 | static void grlib_apbuart_configure(void); | 523 | static int grlib_apbuart_configure(void); |
524 | 524 | ||
525 | static int __init apbuart_console_init(void) | 525 | static int __init apbuart_console_init(void) |
526 | { | 526 | { |
527 | grlib_apbuart_configure(); | 527 | if (grlib_apbuart_configure()) |
528 | return -ENODEV; | ||
528 | register_console(&grlib_apbuart_console); | 529 | register_console(&grlib_apbuart_console); |
529 | return 0; | 530 | return 0; |
530 | } | 531 | } |