OSDN Git Service

sdhci_sysbus: Create SD card device in users, not the device itself
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 18 Feb 2016 14:16:18 +0000 (14:16 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 18 Feb 2016 14:26:33 +0000 (14:26 +0000)
commiteb4f566bbbe195b2475e8fa5d9ed29ca56a18b02
tree781f6dbda950d1b831615cb4cebc267968fc0e69
parent40bbc194376758e8deabcb6f5bfd38bf73355a40
sdhci_sysbus: Create SD card device in users, not the device itself

Move the creation of the SD card device from the sdhci_sysbus
device itself into the boards that create these devices.
This allows us to remove the cannot_instantiate_with_device_add
notation because we no longer call drive_get_next in the device
model.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Message-id: 1455646193-13238-7-git-send-email-peter.maydell@linaro.org
hw/arm/xilinx_zynq.c
hw/arm/xlnx-ep108.c
hw/arm/xlnx-zynqmp.c
hw/sd/sdhci.c