summaryrefslogtreecommitdiff
path: root/hw/sd.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-02 00:55:08 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-02 00:55:08 +0000
commit4872aa135da0409811968ae295e1f45c065d26b4 (patch)
treec3c002a6ec0469fe44af3a8b119a609d416d4c3b /hw/sd.c
parent130b0c986836773492c60895bcdb4114964d361a (diff)
downloadqemu-4872aa135da0409811968ae295e1f45c065d26b4.tar.gz
qemu-4872aa135da0409811968ae295e1f45c065d26b4.tar.bz2
qemu-4872aa135da0409811968ae295e1f45c065d26b4.zip
Enable SD card on creation.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4640 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/sd.c')
-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;