summaryrefslogtreecommitdiff
path: root/hw/usb-serial.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-08-15 11:17:36 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-08-22 10:17:43 -0500
commit27143a445b99a283b3c6529738ba17aa0271746e (patch)
treebaa70ed7e899e1d08b9c51aeacb488fad6ef6ee3 /hw/usb-serial.c
parent15f31519b423747285bdc924ec4138c554076a73 (diff)
downloadqemu-27143a445b99a283b3c6529738ba17aa0271746e.tar.gz
char: rename qemu_chr_open() -> qemu_chr_new()
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb-serial.c')
-rw-r--r--hw/usb-serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/usb-serial.c b/hw/usb-serial.c
index a0fbfcaa24..0637ee9aed 100644
--- a/hw/usb-serial.c
+++ b/hw/usb-serial.c
@@ -538,7 +538,7 @@ static USBDevice *usb_serial_init(const char *filename)
filename++;
snprintf(label, sizeof(label), "usbserial%d", index++);
- cdrv = qemu_chr_open(label, filename, NULL);
+ cdrv = qemu_chr_new(label, filename, NULL);
if (!cdrv)
return NULL;
@@ -561,7 +561,7 @@ static USBDevice *usb_braille_init(const char *unused)
USBDevice *dev;
CharDriverState *cdrv;
- cdrv = qemu_chr_open("braille", "braille", NULL);
+ cdrv = qemu_chr_new("braille", "braille", NULL);
if (!cdrv)
return NULL;