ALSA: atmel: fix building the ac97 driver for at91-multiplatform
authorArnd Bergmann <arnd@arndb.de>
Fri, 26 Dec 2014 13:27:58 +0000 (14:27 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 27 Dec 2014 14:46:03 +0000 (15:46 +0100)
at91 will no longer export the mach/cpu.h and mach/hardware.h header files
in the future, which would break building the atmel ac97c driver.

Since the cpu_is_* check is only used to find out whether we are running
on avr32 or arm/at91, we can hardcode that check in the ARM case.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: http://www.spinics.net/lists/arm-kernel/msg382068.html
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/atmel/ac97c.c

index 4f6b14d704f35f734e58d26961a5078c0e1a9b18..5e6a1db70948a4c1674199910a56cd98c464f42d 100644 (file)
 #include <linux/platform_data/dma-dw.h>
 #include <linux/dma/dw.h>
 
+#ifdef CONFIG_AVR32
 #include <mach/cpu.h>
-
-#ifdef CONFIG_ARCH_AT91
-#include <mach/hardware.h>
+#else
+#define cpu_is_at32ap7000() 0
 #endif
 
 #include "ac97c.h"