]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/arm/imx25_pdk.c
Do not include cpu.h if it's not really necessary
[mirror_qemu.git] / hw / arm / imx25_pdk.c
index af8f7f969c308a3f132503cc739eb7e37dfc5d48..9c58fbde57aec5a267068fe4e2031dc46d6c312c 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "qemu/osdep.h"
 #include "qapi/error.h"
-#include "cpu.h"
 #include "hw/qdev-properties.h"
 #include "hw/arm/fsl-imx25.h"
 #include "hw/boards.h"
@@ -130,7 +129,7 @@ static void imx25_pdk_init(MachineState *machine)
         blk = di ? blk_by_legacy_dinfo(di) : NULL;
         bus = qdev_get_child_bus(DEVICE(&s->soc.esdhc[i]), "sd-bus");
         carddev = qdev_new(TYPE_SD_CARD);
-        qdev_prop_set_drive(carddev, "drive", blk, &error_fatal);
+        qdev_prop_set_drive_err(carddev, "drive", blk, &error_fatal);
         qdev_realize_and_unref(carddev, bus, &error_fatal);
     }