]> git.proxmox.com Git - mirror_qemu.git/commit
hw/arm/spitz: Move problematic nand_init() code to realize function
authorThomas Huth <thuth@redhat.com>
Mon, 23 Jul 2018 14:21:26 +0000 (15:21 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 23 Jul 2018 14:21:26 +0000 (15:21 +0100)
commit07bc425ea32dc5d78790c7bd23bffb77fbc727e0
tree01f011d953a51f3c4e77efffd4a9070ec1c14f43
parent9d2b5a58f85be2d8e129c4b53d6708ecf8796e54
hw/arm/spitz: Move problematic nand_init() code to realize function

nand_init() does not only create the NAND device, it also realizes
the device with qdev_init_nofail() already. So we must not call
nand_init() from an instance_init function like sl_nand_init(),
otherwise we get superfluous NAND devices in the QOM tree after
introspecting the 'sl-nand' device. So move the nand_init() to the
realize function of 'sl-nand' instead.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 1532006134-7701-1-git-send-email-thuth@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/spitz.c