Skip to content

Commit

Permalink
hw/pcmcia/pxa2xx: Do not open-code sysbus_create_simple()
Browse files Browse the repository at this point in the history
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20231020130331.50048-5-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  • Loading branch information
philmd authored and pm215 committed Oct 27, 2023
1 parent 217ceef commit 77d3fa5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hw/pcmcia/pxa2xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ PXA2xxPCMCIAState *pxa2xx_pcmcia_init(MemoryRegion *sysmem,
{
DeviceState *dev;

dev = qdev_new(TYPE_PXA2XX_PCMCIA);
sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, base);
dev = sysbus_create_simple(TYPE_PXA2XX_PCMCIA, base, NULL);

return PXA2XX_PCMCIA(dev);
}
Expand Down

0 comments on commit 77d3fa5

Please sign in to comment.