virtio-console: Factor out common init between console and generic ports
authorAmit Shah <amit.shah@redhat.com>
Mon, 5 Apr 2010 08:50:29 +0000 (14:20 +0530)
committerAmit Shah <amit.shah@redhat.com>
Wed, 19 Jan 2011 12:02:29 +0000 (17:32 +0530)
commitcbe77b616cb73d0a0aedbf9c80cb3dcb7d324535
tree2966fb06fa209dfc00a05f73effa0e0726c578ea
parent1b5f56b134dc2d338911242424795de70c7475fd
virtio-console: Factor out common init between console and generic ports

The initialisation for generic ports and console ports is similar.
Factor out the parts that are the same in a different function that can
be called from each of the initfns.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
hw/virtio-console.c