Commit bda366d7 authored by Anton Blanchard's avatar Anton Blanchard Committed by Linus Torvalds

[PATCH] fix oops in hvc_console

tty_register_driver already calls tty_register_device so there is no need
to do it in hvc_console. Besides, it oopses when we do that.
parent 83bf06e8
...@@ -284,9 +284,6 @@ int __init hvc_init(void) ...@@ -284,9 +284,6 @@ int __init hvc_init(void)
if (tty_register_driver(hvc_driver)) if (tty_register_driver(hvc_driver))
panic("Couldn't register hvc console driver\n"); panic("Couldn't register hvc console driver\n");
for (i = 0; i < num; i++)
tty_register_device(hvc_driver, i, NULL);
if (num > 0) if (num > 0)
kernel_thread(khvcd, NULL, CLONE_KERNEL); kernel_thread(khvcd, NULL, CLONE_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment