aboutsummaryrefslogtreecommitdiff
path: root/hw/omap_clk.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/omap_clk.c')
-rw-r--r--hw/omap_clk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/omap_clk.c b/hw/omap_clk.c
index 577b326ae9..8448006067 100644
--- a/hw/omap_clk.c
+++ b/hw/omap_clk.c
@@ -1239,7 +1239,7 @@ void omap_clk_init(struct omap_mpu_state_s *mpu)
for (i = onchip_clks, count = 0; *i; i ++)
if ((*i)->flags & flag)
count ++;
- mpu->clks = (struct clk *) qemu_mallocz(sizeof(struct clk) * (count + 1));
+ mpu->clks = (struct clk *) g_malloc0(sizeof(struct clk) * (count + 1));
for (i = onchip_clks, j = mpu->clks; *i; i ++)
if ((*i)->flags & flag) {
memcpy(j, *i, sizeof(struct clk));