Revision 61e094c0 hw/usb-bus.c
b/hw/usb-bus.c | ||
---|---|---|
45 | 45 |
|
46 | 46 |
pstrcpy(dev->devname, sizeof(dev->devname), qdev->info->name); |
47 | 47 |
dev->info = info; |
48 |
dev->auto_attach = 1; |
|
48 | 49 |
rc = dev->info->init(dev); |
49 |
if (rc == 0) |
|
50 |
if (rc == 0 && dev->auto_attach)
|
|
50 | 51 |
usb_device_attach(dev); |
51 | 52 |
return rc; |
52 | 53 |
} |
Also available in: Unified diff