mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
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>
This commit is contained in:
parent
b7b8de0873
commit
568389c257
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
static int __init apbuart_console_init(void)
|
||||||
{
|
{
|
||||||
grlib_apbuart_configure();
|
if (grlib_apbuart_configure())
|
||||||
|
return -ENODEV;
|
||||||
register_console(&grlib_apbuart_console);
|
register_console(&grlib_apbuart_console);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue