[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 12/29] hw/ppc/e500: Prefer QOM cast
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 12/29] hw/ppc/e500: Prefer QOM cast |
Date: |
Tue, 5 Nov 2024 22:47:10 +0000 |
From: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-ID: <20241103133412.73536-4-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/ppc/e500.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c
index 6433348072c..060db36dbcb 100644
--- a/hw/ppc/e500.c
+++ b/hw/ppc/e500.c
@@ -1021,7 +1021,7 @@ void ppce500_init(MachineState *machine)
sysbus_connect_irq(s, 0, qdev_get_gpio_in(mpicdev, MPC8544_I2C_IRQ));
memory_region_add_subregion(ccsr_addr_space, MPC8544_I2C_REGS_OFFSET,
sysbus_mmio_get_region(s, 0));
- i2c = (I2CBus *)qdev_get_child_bus(dev, "i2c");
+ i2c = I2C_BUS(qdev_get_child_bus(dev, "i2c"));
i2c_slave_create_simple(i2c, "ds1338", RTC_REGS_OFFSET);
/* eSDHC */
@@ -1070,7 +1070,7 @@ void ppce500_init(MachineState *machine)
memory_region_add_subregion(ccsr_addr_space, MPC8544_PCI_REGS_OFFSET,
sysbus_mmio_get_region(s, 0));
- pci_bus = (PCIBus *)qdev_get_child_bus(dev, "pci.0");
+ pci_bus = PCI_BUS(qdev_get_child_bus(dev, "pci.0"));
if (!pci_bus)
printf("couldn't create PCI controller!\n");
--
2.45.2
- [PULL 06/29] hw/core/machine: Add missing 'units.h' and 'error-report.h' headers, (continued)
- [PULL 06/29] hw/core/machine: Add missing 'units.h' and 'error-report.h' headers, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 07/29] i386/cpu: Don't enumerate the "invalid" CPU topology level, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 08/29] hw/core: Make CPU topology enumeration arch-agnostic, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 09/29] qapi/qom: Define cache enumeration and properties for machine, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 10/29] hw/core: Check smp cache topology support for machine, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 11/29] hw/core: Add a helper to check the cache topology level, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 12/29] hw/ppc/e500: Prefer QOM cast,
Philippe Mathieu-Daudé <=
- [PULL 13/29] hw/ppc/e500: Remove unused "irqs" parameter, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 14/29] hw/ppc/e500: Add missing device tree properties to i2c controller node, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 15/29] hw/ppc/mpc8544_guts: Populate POR PLL ratio status register, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 17/29] hw/i2c/mpc_i2c: Prefer DEFINE_TYPES() macro, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 18/29] hw/pci-host/ppce500: Reuse TYPE_PPC_E500_PCI_BRIDGE define, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 21/29] hw/net/fsl_etsec/etsec: Prefer DEFINE_TYPES() macro, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 16/29] hw/i2c/mpc_i2c: Convert DPRINTF to trace events for register access, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 19/29] hw/pci-host/ppce500: Prefer DEFINE_TYPES() macro, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 20/29] hw/net/fsl_etsec/miim: Reuse MII constants, Philippe Mathieu-Daudé, 2024/11/05
- [PULL 22/29] hw/gpio/mpc8xxx: Prefer DEFINE_TYPES() macro, Philippe Mathieu-Daudé, 2024/11/05