virtio: console: use vdev->priv to avoid accessing global var.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 18 Jan 2010 13:45:04 +0000 (19:15 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:52:40 +0000 (14:22 +1030)
commit73954488b1cc74cf46d6b94b8d3175f45496bd32
treeea1e978de05db548252f171257f2865ab6bfecbe
parenta3cde44908429e52b2ec052ad5a70ef60e1f2d56
virtio: console: use vdev->priv to avoid accessing global var.

Part of removing our "one console" assumptions, use vdev->priv to point
to the port (currently == the global console).

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