summaryrefslogtreecommitdiff
path: root/hw/marvell_88w8618_audio.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-06-27 16:04:31 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-06-27 16:04:31 +0000
commit738012bec4c67e697e766edadab3f522c552a04d (patch)
treef989d39323170f589241207d57cf2cc032097819 /hw/marvell_88w8618_audio.c
parent8a911107386b5c7a78a629f0fe29381cf0ea5f6f (diff)
downloadqemu-738012bec4c67e697e766edadab3f522c552a04d.tar.gz
qemu-738012bec4c67e697e766edadab3f522c552a04d.tar.bz2
qemu-738012bec4c67e697e766edadab3f522c552a04d.zip
Remove useless device dependency of HAS_AUDIO
System architecture dictates whether HAS_AUDIO is defined. It's then useless to check for HAS_AUDIO in files which are only used on those architectures which always have audio. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/marvell_88w8618_audio.c')
-rw-r--r--hw/marvell_88w8618_audio.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/marvell_88w8618_audio.c b/hw/marvell_88w8618_audio.c
index 57c3d5a61b..307b584718 100644
--- a/hw/marvell_88w8618_audio.c
+++ b/hw/marvell_88w8618_audio.c
@@ -34,7 +34,6 @@
#define MP_AUDIO_CLOCK_24MHZ (1 << 9)
#define MP_AUDIO_MONO (1 << 14)
-#ifdef HAS_AUDIO
typedef struct mv88w8618_audio_state {
SysBusDevice busdev;
qemu_irq irq;
@@ -290,13 +289,10 @@ static SysBusDeviceInfo mv88w8618_audio_info = {
{/* end of list */}
}
};
-#endif
static void mv88w8618_register_devices(void)
{
-#ifdef HAS_AUDIO
sysbus_register_withprop(&mv88w8618_audio_info);
-#endif
}
device_init(mv88w8618_register_devices)