]> git.proxmox.com Git - qemu.git/blobdiff - hw/omap_uart.c
Use glib memory allocation and free functions
[qemu.git] / hw / omap_uart.c
index 9cee81d7c9a9a0ffd7d060d766d3ea60fadf460f..09ae9f8abf639ced4d514f650b0e97f8cc29800c 100644 (file)
@@ -55,7 +55,7 @@ struct omap_uart_s *omap_uart_init(target_phys_addr_t base,
                 const char *label, CharDriverState *chr)
 {
     struct omap_uart_s *s = (struct omap_uart_s *)
-            qemu_mallocz(sizeof(struct omap_uart_s));
+            g_malloc0(sizeof(struct omap_uart_s));
 
     s->base = base;
     s->fclk = fclk;