Revision 7267c094 hw/omap_i2c.c
b/hw/omap_i2c.c | ||
---|---|---|
426 | 426 |
{ |
427 | 427 |
int iomemtype; |
428 | 428 |
struct omap_i2c_s *s = (struct omap_i2c_s *) |
429 |
qemu_mallocz(sizeof(struct omap_i2c_s));
|
|
429 |
g_malloc0(sizeof(struct omap_i2c_s));
|
|
430 | 430 |
|
431 | 431 |
/* TODO: set a value greater or equal to real hardware */ |
432 | 432 |
s->revision = 0x11; |
... | ... | |
448 | 448 |
{ |
449 | 449 |
int iomemtype; |
450 | 450 |
struct omap_i2c_s *s = (struct omap_i2c_s *) |
451 |
qemu_mallocz(sizeof(struct omap_i2c_s));
|
|
451 |
g_malloc0(sizeof(struct omap_i2c_s));
|
|
452 | 452 |
|
453 | 453 |
s->revision = 0x34; |
454 | 454 |
s->irq = irq; |
Also available in: Unified diff