aboutsummaryrefslogtreecommitdiff
path: root/hw/serial.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2011-02-05 19:37:40 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-02-20 09:32:50 +0000
commite22cf21efdc5f25fb9ba136cba7acb71aa379ea7 (patch)
tree779320539ee9d91fbaf98acfce00a6aace73232f /hw/serial.c
parentcd1b8a8b0d5951fb3a575a13bfd3aa3f7018ef1f (diff)
downloadqemu-e22cf21efdc5f25fb9ba136cba7acb71aa379ea7.zip
qemu-e22cf21efdc5f25fb9ba136cba7acb71aa379ea7.tar.gz
qemu-e22cf21efdc5f25fb9ba136cba7acb71aa379ea7.tar.bz2
serial: refactor device creation
Turn serial_init into an inline function. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/serial.c')
-rw-r--r--hw/serial.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/hw/serial.c b/hw/serial.c
index 2c4af61..879237f 100644
--- a/hw/serial.c
+++ b/hw/serial.c
@@ -782,18 +782,6 @@ static int serial_isa_initfn(ISADevice *dev)
return 0;
}
-SerialState *serial_isa_init(int index, CharDriverState *chr)
-{
- ISADevice *dev;
-
- dev = isa_create("isa-serial");
- qdev_prop_set_uint32(&dev->qdev, "index", index);
- qdev_prop_set_chr(&dev->qdev, "chardev", chr);
- if (qdev_init(&dev->qdev) < 0)
- return NULL;
- return &DO_UPCAST(ISASerialState, dev, dev)->state;
-}
-
static const VMStateDescription vmstate_isa_serial = {
.name = "serial",
.version_id = 3,