diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-12 12:33:04 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-12 12:33:04 +0100 |
commit | 22d83b140e7b2dda555b7e3035050454f8764b7f (patch) | |
tree | b80cd7f2cbae7951323871218db3772dd8b3b8c7 /hw/spitz.c | |
parent | 0d9acba8fddbf970c7353083e6a60b47017ce3e4 (diff) |
Push AUD_init down to devices
Now we can safely call AUD_init multiple times we can push it down to
individual audio devices, rather than having to pass it from the board
init.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/spitz.c')
-rw-r--r-- | hw/spitz.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/spitz.c b/hw/spitz.c index e53a81da6d..805af353a7 100644 --- a/hw/spitz.c +++ b/hw/spitz.c @@ -740,12 +740,10 @@ static void spitz_i2c_setup(PXA2xxState *cpu) i2c_bus *bus = pxa2xx_i2c_bus(cpu->i2c[0]); #ifdef HAS_AUDIO - AudioState *audio; i2c_slave *wm; - audio = AUD_init(); /* Attach a WM8750 to the bus */ - wm = wm8750_init(bus, audio); + wm = wm8750_init(bus); spitz_wm8750_addr(wm, 0, 0); pxa2xx_gpio_out_set(cpu->gpio, SPITZ_GPIO_WM, |