Skip to content

Commit

Permalink
ALSA: fix invalid hardware.h include in ac97c for AVR32 architecture
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Hans-Christian Egtvedt authored and tiwai committed Jan 25, 2011
1 parent c9ba374 commit fd76804
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sound/atmel/ac97c.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@
#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 {
Expand Down

0 comments on commit fd76804

Please sign in to comment.