Skip to content

Commit

Permalink
ALSA: atmel: fix building the ac97 driver for at91-multiplatform
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: http://www.spinics.net/lists/arm-kernel/msg382068.html
Signed-off-by: Alexandre Belloni <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
arndb authored and tiwai committed Dec 27, 2014
1 parent eb58d48 commit 270384c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/atmel/ac97c.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
#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"
Expand Down

0 comments on commit 270384c

Please sign in to comment.