]> git.proxmox.com Git - qemu.git/blobdiff - hw/omap_spi.c
Use glib memory allocation and free functions
[qemu.git] / hw / omap_spi.c
index a6b03496c44ea8722950facaeb528fc03553d1c0..6030ad9551a4af8b5658367049abff7b3c894b2a 100644 (file)
@@ -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;