summaryrefslogtreecommitdiff
path: root/hw/pxa2xx.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-23 22:21:27 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-23 22:21:27 +0000
commit3f6c925f37cd8a1dddb8a8fbbcef4630ea347775 (patch)
tree912ad812f2e0e4f6740ac47cce9f243011470e83 /hw/pxa2xx.c
parent7ec47eadc7048435b54bc53ccb41307851098409 (diff)
Use i2c_slave_init() to allocate the PXA (dummy) I2C slave.
Hush the warning: hw/pc.c:402: warning: control reaches end of non-void function git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2856 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pxa2xx.c')
-rw-r--r--hw/pxa2xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c
index 913c0bd764..03f4b47316 100644
--- a/hw/pxa2xx.c
+++ b/hw/pxa2xx.c
@@ -1294,7 +1294,7 @@ struct pxa2xx_i2c_s *pxa2xx_i2c_init(target_phys_addr_t base,
{
int iomemtype;
struct pxa2xx_i2c_s *s = (struct pxa2xx_i2c_s *)
- qemu_mallocz(sizeof(struct pxa2xx_i2c_s));
+ i2c_slave_init(i2c_init_bus(), 0, sizeof(struct pxa2xx_i2c_s));
s->base = base;
s->irq = irq;