aboutsummaryrefslogtreecommitdiff
path: root/hw/sd/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/sd/core.c')
-rw-r--r--hw/sd/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/sd/core.c b/hw/sd/core.c
index 957d116..08c93b5 100644
--- a/hw/sd/core.c
+++ b/hw/sd/core.c
@@ -23,6 +23,7 @@
#include "hw/qdev-core.h"
#include "hw/sd/sd.h"
#include "qemu/module.h"
+#include "qapi/error.h"
#include "trace.h"
static inline const char *sdbus_name(SDBus *sdbus)
@@ -240,7 +241,7 @@ void sdbus_reparent_card(SDBus *from, SDBus *to)
readonly = sc->get_readonly(card);
sdbus_set_inserted(from, false);
- qdev_set_parent_bus(DEVICE(card), &to->qbus);
+ qdev_set_parent_bus(DEVICE(card), &to->qbus, &error_abort);
sdbus_set_inserted(to, true);
sdbus_set_readonly(to, readonly);
}