virtio: console: Separate out console init into a new function
authorAmit Shah <amit.shah@redhat.com>
Mon, 18 Jan 2010 13:45:10 +0000 (19:15 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:52:48 +0000 (14:22 +1030)
commitcfa6d3792550c9eac51887181358954e6515da6b
tree2ee0ee37ad3289f57c082a3cba496898089ff1c2
parent4f23c573c0dbebfd193cfb90b003d67929c58b31
virtio: console: Separate out console init into a new function

Console ports could be hot-added. Also, with the new multiport support,
a port is identified as a console port only if the host sends a control
message.

Move the console port init into a separate function so it can be invoked
from other places.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c