hw/arm/pxa2xx: Realize PXA2XX_I2C device before accessing it
commitbf348bf9ab5459004927873c37e79f2040887d22
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 20 Oct 2023 13:03:30 +0000 (20 15:03 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 27 Oct 2023 11:48:57 +0000 (27 12:48 +0100)
treed1ec45c2b36f1563455896fbe8253949e7335e5f
parent25c4ff29d1688989ca6246e1a34e57505283ea2c
hw/arm/pxa2xx: Realize PXA2XX_I2C device before accessing it

qbus_new(), called in i2c_init_bus(), should not be called
on unrealized device.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-id: 20231020130331.50048-10-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/pxa2xx.c