hw/sd/pxa2xx: Realize sysbus device before accessing it
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 20 Oct 2023 13:03:22 +0000 (15:03 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 27 Oct 2023 11:48:57 +0000 (12:48 +0100)
commit85500a1aef1cdfb2878d88a3d88db56ad972fb60
tree746806705f298dc3bb811d22d46662194649e266
parentf3205af4c7f29ba4fc0f995d48e450787f93853e
hw/sd/pxa2xx: Realize sysbus device before accessing it

sysbus_mmio_map() and sysbus_connect_irq() should not be
called on unrealized device.

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