Message ID | 1436284182-5063-28-git-send-email-agraf@suse.de |
---|---|
State | New |
Headers | show |
diff --git a/hw/char/spapr_vty.c b/hw/char/spapr_vty.c index 2d532af..36b328b 100644 --- a/hw/char/spapr_vty.c +++ b/hw/char/spapr_vty.c @@ -193,7 +193,7 @@ VIOsPAPRDevice *spapr_vty_get_default(VIOsPAPRBus *bus) DeviceState *iter = kid->child; /* Only look at VTY devices */ - if (!object_dynamic_cast(OBJECT(iter), "spapr-vty")) { + if (!object_dynamic_cast(OBJECT(iter), TYPE_VIO_SPAPR_VTY_DEVICE)) { continue; }