is redundant with DeviceState->type->name
Signed-off-by: Gerd Hoffmann <[email protected]>
}
dev = qemu_mallocz(t->size);
- dev->name = name;
dev->type = t;
if (!bus) {
static int next_serial;
static int next_virtconsole;
/* FIXME: This is a nasty hack that needs to go away. */
- if (strncmp(dev->name, "virtio", 6) == 0) {
+ if (strncmp(dev->type->name, "virtio", 6) == 0) {
return virtcon_hds[next_virtconsole++];
} else {
return serial_hds[next_serial++];
/* This structure should not be accessed directly. We declare it here
so that it can be embedded in individual device state structures. */
struct DeviceState {
- const char *name;
DeviceType *type;
BusState *parent_bus;
DeviceProperty *props;