drivers/tty/hvc: don't free hvc_console_setup after init
authorTomoki Sekiyama <tomoki.sekiyama@hds.com>
Fri, 2 May 2014 22:58:24 +0000 (18:58 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 May 2014 22:14:28 +0000 (18:14 -0400)
commit501fed45b7e8836ee9373f4d31e2d85e3db6103a
treea10b3793de371d0a9cde3bee533fcce365985215
parent4291086b1f081b869c6d79e5b7441633dc3ace00
drivers/tty/hvc: don't free hvc_console_setup after init

When 'console=hvc0' is specified to the kernel parameter in x86 KVM guest,
hvc console is setup within a kthread. However, that will cause SEGV
and the boot will fail when the driver is builtin to the kernel,
because currently hvc_console_setup() is annotated with '__init'. This
patch removes '__init' to boot the guest successfully with 'console=hvc0'.

Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_console.c