diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-06-01 11:34:52 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2023-06-05 20:48:34 +0200 |
commit | 7d5b0d68647c8f966c6e4e68ed669127186b4701 (patch) | |
tree | a2018e6d48f88a710cc1b7935b307cdd5ae77651 /hw/intc/loongarch_extioi.c | |
parent | e3e2c0c82bd0b9678f7950f37f9a089301d47813 (diff) | |
download | qemu-7d5b0d68647c8f966c6e4e68ed669127186b4701.zip qemu-7d5b0d68647c8f966c6e4e68ed669127186b4701.tar.gz qemu-7d5b0d68647c8f966c6e4e68ed669127186b4701.tar.bz2 |
bulk: Remove pointless QOM casts
Mechanical change running Coccinelle spatch with content
generated from the qom-cast-macro-clean-cocci-gen.py added
in the previous commit.
Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230601093452.38972-3-philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'hw/intc/loongarch_extioi.c')
-rw-r--r-- | hw/intc/loongarch_extioi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/intc/loongarch_extioi.c b/hw/intc/loongarch_extioi.c index 0e7a3e3..af75460 100644 --- a/hw/intc/loongarch_extioi.c +++ b/hw/intc/loongarch_extioi.c @@ -276,7 +276,7 @@ static void loongarch_extioi_instance_init(Object *obj) int i, cpu, pin; for (i = 0; i < EXTIOI_IRQS; i++) { - sysbus_init_irq(SYS_BUS_DEVICE(dev), &s->irq[i]); + sysbus_init_irq(dev, &s->irq[i]); } qdev_init_gpio_in(DEVICE(obj), extioi_setirq, EXTIOI_IRQS); @@ -284,14 +284,14 @@ static void loongarch_extioi_instance_init(Object *obj) for (cpu = 0; cpu < EXTIOI_CPUS; cpu++) { memory_region_init_io(&s->extioi_iocsr_mem[cpu], OBJECT(s), &extioi_ops, s, "extioi_iocsr", 0x900); - sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->extioi_iocsr_mem[cpu]); + sysbus_init_mmio(dev, &s->extioi_iocsr_mem[cpu]); for (pin = 0; pin < LS3A_INTC_IP; pin++) { qdev_init_gpio_out(DEVICE(obj), &s->parent_irq[cpu][pin], 1); } } memory_region_init_io(&s->extioi_system_mem, OBJECT(s), &extioi_ops, s, "extioi_system_mem", 0x900); - sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->extioi_system_mem); + sysbus_init_mmio(dev, &s->extioi_system_mem); } static void loongarch_extioi_class_init(ObjectClass *klass, void *data) |