ALSA: fix invalid hardware.h include in ac97c for AVR32 architecture
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Mon, 24 Jan 2011 15:09:56 +0000 (16:09 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Jan 2011 17:07:10 +0000 (18:07 +0100)
This patch fixes the non-compiling AC97C driver for AVR32 architecture by
include mach/hardware.h only for AT91 architecture. The AVR32 architecture does
not supply the hardware.h include file.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
CC: stable@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/atmel/ac97c.c

index 10c3a871a12d904bad20cff78dfce56e8373cb92..b310702c646e40ef59afedeed630dc320b5570be 100644 (file)
 #include <linux/dw_dmac.h>
 
 #include <mach/cpu.h>
-#include <mach/hardware.h>
 #include <mach/gpio.h>
 
+#ifdef CONFIG_ARCH_AT91
+#include <mach/hardware.h>
+#endif
+
 #include "ac97c.h"
 
 enum {