diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-20 22:09:37 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-20 23:01:08 -0500 |
commit | 7267c0947d7e8ae5dff7bafd932c3bc285f43e5c (patch) | |
tree | 9aa05d6e05ed83e67bf014f6745a3081b8407dc5 /hw/omap_gpio.c | |
parent | 14015304b662e8f8ccce46c5a6927af6a14c510b (diff) |
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/omap_gpio.c')
-rw-r--r-- | hw/omap_gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/omap_gpio.c b/hw/omap_gpio.c index c23964c66d..42e59c3a53 100644 --- a/hw/omap_gpio.c +++ b/hw/omap_gpio.c @@ -696,8 +696,8 @@ static int omap2_gpio_init(SysBusDevice *dev) } else { s->modulecount = 6; } - s->modules = qemu_mallocz(s->modulecount * sizeof(struct omap2_gpio_s)); - s->handler = qemu_mallocz(s->modulecount * 32 * sizeof(qemu_irq)); + s->modules = g_malloc0(s->modulecount * sizeof(struct omap2_gpio_s)); + s->handler = g_malloc0(s->modulecount * 32 * sizeof(qemu_irq)); qdev_init_gpio_in(&dev->qdev, omap2_gpio_set, s->modulecount * 32); qdev_init_gpio_out(&dev->qdev, s->handler, s->modulecount * 32); for (i = 0; i < s->modulecount; i++) { |