From 4875cdac1d3736767409bf4eb5dea5b347ad0be5 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Fri, 17 Dec 2010 11:16:17 +0100 Subject: [PATCH] --- yaml --- r: 227080 b: refs/heads/master c: 568389c257fa7d74ce36c2f78bad31965fded4cf h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/serial/apbuart.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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; }