diff mbox

ppc/xics: fix XICSStateClass parent class

Message ID 1486978404-17509-1-git-send-email-clg@kaod.org
State New
Headers show

Commit Message

Cédric Le Goater Feb. 13, 2017, 9:33 a.m. UTC
XICSState inherits from SysBusDevice and so the object class should
inherit from SysBusDeviceClass.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
 include/hw/ppc/xics.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h
index 3f0c31610aa4..e8794aa5cba8 100644
--- a/include/hw/ppc/xics.h
+++ b/include/hw/ppc/xics.h
@@ -71,7 +71,7 @@  typedef struct ICSState ICSState;
 typedef struct ICSIRQState ICSIRQState;
 
 struct XICSStateClass {
-    DeviceClass parent_class;
+    SysBusDeviceClass parent_class;
 
     void (*cpu_setup)(XICSState *icp, PowerPCCPU *cpu);
     void (*set_nr_irqs)(XICSState *icp, uint32_t nr_irqs, Error **errp);