Skip to content

Commit fd76804

Browse files
Hans-Christian Egtvedttiwai
Hans-Christian Egtvedt
authored andcommitted
ALSA: fix invalid hardware.h include in ac97c for AVR32 architecture
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 <[email protected]> CC: [email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent c9ba374 commit fd76804

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sound/atmel/ac97c.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,12 @@
3333
#include <linux/dw_dmac.h>
3434

3535
#include <mach/cpu.h>
36-
#include <mach/hardware.h>
3736
#include <mach/gpio.h>
3837

38+
#ifdef CONFIG_ARCH_AT91
39+
#include <mach/hardware.h>
40+
#endif
41+
3942
#include "ac97c.h"
4043

4144
enum {

0 commit comments

Comments
 (0)