virtio: console: statically initialize virtio_cons
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 18 Jan 2010 13:44:56 +0000 (19:14 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:52:31 +0000 (14:22 +1030)
commit971f3390003619ea4ac0b20ee93dfd3209025790
treeeb25f42019387f1881defce1636fdf6e21b8d13c
parenta23ea92474e558b071d3e43d961ec767c31faebd
virtio: console: statically initialize virtio_cons

That way, we can make it const as is good kernel style.  We use a separate
indirection for the early console, rather than mugging ops.put_chars.

We rename it hv_ops, too.

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