mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
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>
This commit is contained in:
parent
8a91110738
commit
738012bec4
8 changed files with 0 additions and 26 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue