From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752437AbaLYKTK (ORCPT ); Thu, 25 Dec 2014 05:19:10 -0500 Received: from cantor2.suse.de ([195.135.220.15]:60490 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752232AbaLYKTH (ORCPT ); Thu, 25 Dec 2014 05:19:07 -0500 Date: Thu, 25 Dec 2014 11:19:04 +0100 Message-ID: From: Takashi Iwai To: Alexandre Belloni Cc: Jaroslav Kysela , Alexander Stein , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Nicolas Ferre , Arnd Bergmann Subject: Re: [PATCH v2] ALSA: atmel: fix building the ac97 driver for at91-multiplatform In-Reply-To: <1419160689-20447-1-git-send-email-alexandre.belloni@free-electrons.com> References: <1419160689-20447-1-git-send-email-alexandre.belloni@free-electrons.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.4 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Sun, 21 Dec 2014 12:18:09 +0100, Alexandre Belloni wrote: > > From: Arnd Bergmann > > 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 > Link: http://www.spinics.net/lists/arm-kernel/msg382068.html Is this targeted for 3.19 or 3.20? thanks, Takashi > --- > sound/atmel/ac97c.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c > index b59427d5a697..83975f8d5947 100644 > --- a/sound/atmel/ac97c.c > +++ b/sound/atmel/ac97c.c > @@ -34,10 +34,10 @@ > #include > #include > > +#ifdef CONFIG_AVR32 > #include > - > -#ifdef CONFIG_ARCH_AT91 > -#include > +#else > +#define cpu_is_at32ap7000() 0 > #endif > > #include "ac97c.h" > -- > 2.1.0 >