summary refs log tree commit diff stats
path: root/hw/omap2.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/omap2.c
parent8a911107386b5c7a78a629f0fe29381cf0ea5f6f (diff)
downloadfocaccia-qemu-738012bec4c67e697e766edadab3f522c552a04d.tar.gz
focaccia-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/omap2.c')
-rw-r--r--hw/omap2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/omap2.c b/hw/omap2.c
index 666c15adb2..f2c47feef8 100644
--- a/hw/omap2.c
+++ b/hw/omap2.c
@@ -1973,13 +1973,11 @@ struct omap_eac_s *omap_eac_init(struct omap_target_agent_s *ta,
     s->codec.txdrq = *drq;
     omap_eac_reset(s);
 
-#ifdef HAS_AUDIO
     AUD_register_card("OMAP EAC", &s->codec.card);
 
     iomemtype = cpu_register_io_memory(omap_eac_readfn,
                     omap_eac_writefn, s);
     omap_l4_attach(ta, 0, iomemtype);
-#endif
 
     return s;
 }