qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 18c637d] qdev/prop: convert slavio_timer.c to he


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 18c637d] qdev/prop: convert slavio_timer.c to helper macros.
Date: Mon, 10 Aug 2009 21:48:51 -0000

From: Gerd Hoffmann <address@hidden>

Signed-off-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
Message-Id: 
Message-Id: 

diff --git a/hw/slavio_timer.c b/hw/slavio_timer.c
index ed1145a..531d6db 100644
--- a/hw/slavio_timer.c
+++ b/hw/slavio_timer.c
@@ -451,12 +451,8 @@ static SysBusDeviceInfo slavio_timer_info = {
     .qdev.name  = "slavio_timer",
     .qdev.size  = sizeof(SLAVIO_TIMERState),
     .qdev.props = (Property[]) {
-        {
-            .name = "num_cpus",
-            .info = &qdev_prop_uint32,
-            .offset = offsetof(SLAVIO_TIMERState, num_cpus),
-        },
-        {/* end of property list */}
+        DEFINE_PROP_UINT32("num_cpus",  SLAVIO_TIMERState, num_cpus,  0),
+        DEFINE_PROP_END_OF_LIST(),
     }
 };
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]