diff options
| author | Thomas Huth | 2018-07-23 16:21:26 +0200 |
|---|---|---|
| committer | Peter Maydell | 2018-07-23 16:21:26 +0200 |
| commit | 07bc425ea32dc5d78790c7bd23bffb77fbc727e0 (patch) | |
| tree | 01f011d953a51f3c4e77efffd4a9070ec1c14f43 /include/exec/exec-all.h | |
| parent | target/arm: Correctly handle overlapping small MPU regions (diff) | |
| download | qemu-07bc425ea32dc5d78790c7bd23bffb77fbc727e0.tar.gz qemu-07bc425ea32dc5d78790c7bd23bffb77fbc727e0.tar.xz qemu-07bc425ea32dc5d78790c7bd23bffb77fbc727e0.zip | |
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>
Diffstat (limited to 'include/exec/exec-all.h')
0 files changed, 0 insertions, 0 deletions
