diff options
author | xiaoqiang zhao <zxq_yx_007@163.com> | 2013-11-05 18:16:04 +0800 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-12-24 18:02:18 +0100 |
commit | f97718584baa6ef919d00067b9787ba7fc5f1a5b (patch) | |
tree | 1c61534d0acf3586eb4e8eabc8ee5eda9152e673 /hw/intc/ioapic_common.c | |
parent | 494c271784a5e360523e874be9f67259932ea68c (diff) | |
download | hqemu-f97718584baa6ef919d00067b9787ba7fc5f1a5b.zip hqemu-f97718584baa6ef919d00067b9787ba7fc5f1a5b.tar.gz |
ioapic: Cleanup for QOM'ification
Some cleanups:
* ioapic_common.c: Rename 'register_types' to 'ioapic_common_register_types'
* Replace inline 'DEVICE(s)' with local 'DeviceState *dev' variable
Signed-off-by: xiaoqiang zhao <zxq_yx_007@163.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/intc/ioapic_common.c')
-rw-r--r-- | hw/intc/ioapic_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/intc/ioapic_common.c b/hw/intc/ioapic_common.c index 9ba1a26..4611f7f 100644 --- a/hw/intc/ioapic_common.c +++ b/hw/intc/ioapic_common.c @@ -109,9 +109,9 @@ static const TypeInfo ioapic_common_type = { .abstract = true, }; -static void register_types(void) +static void ioapic_common_register_types(void) { type_register_static(&ioapic_common_type); } -type_init(register_types) +type_init(ioapic_common_register_types) |