diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-14 22:35:08 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-14 22:35:08 +0100 |
commit | cdbe40ca836624a474bf8378b78a715ded36178c (patch) | |
tree | 25f499586b74a30a975b331f1f038a3d1d55bb80 /hw/spitz.c | |
parent | 697454eb8e2335c21e07b8cd0a7468d1c53bed08 (diff) | |
download | qemu-cdbe40ca836624a474bf8378b78a715ded36178c.zip qemu-cdbe40ca836624a474bf8378b78a715ded36178c.tar.gz qemu-cdbe40ca836624a474bf8378b78a715ded36178c.tar.bz2 |
WM8750 qdev coversion
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/spitz.c')
-rw-r--r-- | hw/spitz.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -740,10 +740,10 @@ static void spitz_i2c_setup(PXA2xxState *cpu) i2c_bus *bus = pxa2xx_i2c_bus(cpu->i2c[0]); #ifdef HAS_AUDIO - i2c_slave *wm; + DeviceState *wm; /* Attach a WM8750 to the bus */ - wm = wm8750_init(bus); + wm = i2c_create_slave(bus, "wm8750", 0); spitz_wm8750_addr(wm, 0, 0); pxa2xx_gpio_out_set(cpu->gpio, SPITZ_GPIO_WM, |