aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tty/hvc/hvc_console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/hvc/hvc_console.c b/drivers/tty/hvc/hvc_console.c
index eb255e807c06..ce028e159efe 100644
--- a/drivers/tty/hvc/hvc_console.c
+++ b/drivers/tty/hvc/hvc_console.c
@@ -186,7 +186,7 @@ static struct tty_driver *hvc_console_device(struct console *c, int *index)
186 return hvc_driver; 186 return hvc_driver;
187} 187}
188 188
189static int __init hvc_console_setup(struct console *co, char *options) 189static int hvc_console_setup(struct console *co, char *options)
190{ 190{
191 if (co->index < 0 || co->index >= MAX_NR_HVC_CONSOLES) 191 if (co->index < 0 || co->index >= MAX_NR_HVC_CONSOLES)
192 return -ENODEV; 192 return -ENODEV;