aboutsummaryrefslogtreecommitdiff
path: root/hw/sd/sdhci.c
diff options
context:
space:
mode:
authorliguang <lig.fnst@cn.fujitsu.com>2013-06-18 11:45:36 +0800
committerMichael Tokarev <mjt@tls.msk.ru>2013-06-21 22:52:50 +0400
commit6790f59da37f6b8d4f0fe3a6b17febf512511307 (patch)
tree11ba4c9d9e91af825847fe8ad3591c4c39192999 /hw/sd/sdhci.c
parente990a3932847c45839355de72e73182a53fc75ac (diff)
downloadqemu-6790f59da37f6b8d4f0fe3a6b17febf512511307.zip
qemu-6790f59da37f6b8d4f0fe3a6b17febf512511307.tar.gz
qemu-6790f59da37f6b8d4f0fe3a6b17febf512511307.tar.bz2
sd: pass bool parameter for sd_init
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/sd/sdhci.c')
-rw-r--r--hw/sd/sdhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c
index 0065067..b9dd4be 100644
--- a/hw/sd/sdhci.c
+++ b/hw/sd/sdhci.c
@@ -1165,7 +1165,7 @@ static void sdhci_initfn(Object *obj)
DriveInfo *di;
di = drive_get_next(IF_SD);
- s->card = sd_init(di ? di->bdrv : NULL, 0);
+ s->card = sd_init(di ? di->bdrv : NULL, false);
s->eject_cb = qemu_allocate_irqs(sdhci_insert_eject_cb, s, 1)[0];
s->ro_cb = qemu_allocate_irqs(sdhci_card_readonly_cb, s, 1)[0];
sd_set_cb(s->card, s->ro_cb, s->eject_cb);