summaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-12-17 11:16:17 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-01-06 10:44:11 -0800
commit568389c257fa7d74ce36c2f78bad31965fded4cf (patch)
treedc8ac314514f03b29675ae99957961d4cb71f7a6 /drivers/serial
parentb7b8de087384cc1954a8cd075af3f9e5977caa2e (diff)
downloadop-kernel-dev-568389c257fa7d74ce36c2f78bad31965fded4cf.zip
op-kernel-dev-568389c257fa7d74ce36c2f78bad31965fded4cf.tar.gz
serial: apbuart: Fixup apbuart_console_init()
commit 35c64e5d (drivers: serial: apbuart: Handle OF failures gracefully) missed that the modified grlib_apbuart_configure() function is called from apbuart_console_init() as well. Fix the fallout. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/apbuart.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/serial/apbuart.c b/drivers/serial/apbuart.c
index 2e84d9c..a30bb962 100644
--- a/drivers/serial/apbuart.c
+++ b/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;
}
OpenPOWER on IntegriCloud