usb-serial: only check speed once at realize time
commit7334d6507a7578152bb7addcef84e4cf634814a4
authorGonglei <arei.gonglei@huawei.com>
Fri, 19 Sep 2014 07:25:21 +0000 (19 15:25 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 23 Sep 2014 10:51:08 +0000 (23 12:51 +0200)
tree4b5684fc19a7bff2d977c48cb0a2ecc751142780
parent594a53607e5bd4a2b7555a7a2908d2c406fea9aa
usb-serial: only check speed once at realize time

Whatever the chardev is open or not, we should assure
the speed is matched each other. So, call usb_check_attach()
check speed. And then pass &error_abort at all calls to
usb_device_attach().

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