dev-serial: convert init to realize
commit38fff2c9f4f9173e8b985fcdf6c2bb8a56712993
authorGonglei <arei.gonglei@huawei.com>
Fri, 19 Sep 2014 06:48:34 +0000 (19 14:48 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 23 Sep 2014 10:51:07 +0000 (23 12:51 +0200)
treede7bc05547fae3844f2da0453aaa376ed3077e30
parent63cdca364c84f174271c7d6756091895dadd71f4
dev-serial: convert init to realize

In this way, all the implementations now use
error_setg instead of error_report for reporting error.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/dev-serial.c