aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-ccid.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-12-08 14:56:53 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2012-02-03 10:41:03 -0600
commitba02430f1a681173cff5336c626d6edc5ea268db (patch)
tree74913357d1d97791c10e8f94d95ec36986a97168 /hw/usb-ccid.c
parent7f595609b49615b07c50b7182c4ef125c39cb5da (diff)
usb: separate out legacy usb registration from type registration
Type registeration is going to get turned into a QOM call so decouple the legacy support. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb-ccid.c')
-rw-r--r--hw/usb-ccid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/usb-ccid.c b/hw/usb-ccid.c
index aff81faae9..a261d7d34d 100644
--- a/hw/usb-ccid.c
+++ b/hw/usb-ccid.c
@@ -1352,6 +1352,7 @@ static TypeInfo ccid_card_type_info = {
static void ccid_register_devices(void)
{
type_register_static(&ccid_card_type_info);
- usb_qdev_register(&ccid_info, "ccid", NULL);
+ usb_qdev_register(&ccid_info);
+ usb_legacy_register(CCID_DEV_NAME, "ccid", NULL);
}
device_init(ccid_register_devices)