Patchwork [13/29] cirrus: qidl_declare ISACirrusVGAState

login
register
mail settings
Submitter Michael Roth
Date Nov. 1, 2012, 1:04 p.m.
Message ID <1351775071-7644-14-git-send-email-mdroth@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/196215/
State New
Headers show

Comments

Michael Roth - Nov. 1, 2012, 1:04 p.m.
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
---
 hw/cirrus_vga.c |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Patch

diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c
index 9b27317..220525a 100644
--- a/hw/cirrus_vga.c
+++ b/hw/cirrus_vga.c
@@ -258,10 +258,12 @@  QIDL_DECLARE(PCICirrusVGAState) {
     CirrusVGAState cirrus_vga;
 };
 
-typedef struct ISACirrusVGAState {
-    ISADevice dev;
+typedef struct ISACirrusVGAState ISACirrusVGAState;
+
+QIDL_DECLARE(ISACirrusVGAState) {
+    ISADevice dev q_immutable;
     CirrusVGAState cirrus_vga;
-} ISACirrusVGAState;
+};
 
 static uint8_t rop_to_index[256];