[alsa-devel] [PATCH] alsa: fix invalid hardware.h include in ac97c for AVR32 architecture

Hans-Christian Egtvedt hcegtvedt at atmel.com
Mon Jan 24 16:09:56 CET 2011

From: Hans-Christian Egtvedt <hans-christian.egtvedt at atmel.com>

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 at atmel.com>
CC: stable at vger.kernel.org
This patch also applies to the stable kernels, as the ac97c.c file has not been
compilable for AVR32 since commit 7177395fdd919e561544a7d1c0ac196098a2ae2d

 sound/atmel/ac97c.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c
index 10c3a87..b310702 100644
--- a/sound/atmel/ac97c.c
+++ b/sound/atmel/ac97c.c
@@ -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>
 #include "ac97c.h"
 enum {

More information about the Alsa-devel mailing list