aboutsummaryrefslogtreecommitdiff
path: root/hw/omap_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/omap_spi.c')
-rw-r--r--hw/omap_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/omap_spi.c b/hw/omap_spi.c
index a6b03496c4..6030ad9551 100644
--- a/hw/omap_spi.c
+++ b/hw/omap_spi.c
@@ -315,7 +315,7 @@ struct omap_mcspi_s *omap_mcspi_init(struct omap_target_agent_s *ta, int chnum,
{
int iomemtype;
struct omap_mcspi_s *s = (struct omap_mcspi_s *)
- qemu_mallocz(sizeof(struct omap_mcspi_s));
+ g_malloc0(sizeof(struct omap_mcspi_s));
struct omap_mcspi_ch_s *ch = s->ch;
s->irq = irq;