]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf6310376748ed68a48c864bdfea3b6cf06963017
treeea1e978de05db548252f171257f2865ab6bfecbe
parent896507b8bd1d6ac5e01f606b08657c9cb68395ba
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