aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/sd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/sd.c b/hw/sd.c
index de7dd89c18..0c770bc0a5 100644
--- a/hw/sd.c
+++ b/hw/sd.c
@@ -421,6 +421,7 @@ SDState *sd_init(BlockDriverState *bs, int is_spi)
sd = (SDState *) qemu_mallocz(sizeof(SDState));
sd->buf = qemu_memalign(512, 512);
sd->spi = is_spi;
+ sd->enable = 1;
sd_reset(sd, bs);
bdrv_set_change_cb(sd->bdrv, sd_cardchange, sd);
return sd;