From patchwork Fri Dec 26 13:27:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 5542981 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BDA46BEEA8 for ; Fri, 26 Dec 2014 13:28:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EAA09201EC for ; Fri, 26 Dec 2014 13:28:21 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id D426E20173 for ; Fri, 26 Dec 2014 13:28:20 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id AFB5026041C; Fri, 26 Dec 2014 14:28:18 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 210C5260414; Fri, 26 Dec 2014 14:28:09 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id BCC8C260415; Fri, 26 Dec 2014 14:28:07 +0100 (CET) Received: from mail.free-electrons.com (down.free-electrons.com [37.187.137.238]) by alsa0.perex.cz (Postfix) with ESMTP id A682C260413 for ; Fri, 26 Dec 2014 14:28:01 +0100 (CET) Received: by mail.free-electrons.com (Postfix, from userid 106) id E2BD8725; Fri, 26 Dec 2014 14:28:15 +0100 (CET) Received: from localhost (AReims-652-1-6-244.w86-208.abo.wanadoo.fr [86.208.33.244]) by mail.free-electrons.com (Postfix) with ESMTPSA id 92B234BF; Fri, 26 Dec 2014 14:28:15 +0100 (CET) From: Alexandre Belloni To: Takashi Iwai Date: Fri, 26 Dec 2014 14:27:58 +0100 Message-Id: <1419600478-16885-1-git-send-email-alexandre.belloni@free-electrons.com> X-Mailer: git-send-email 2.1.0 Cc: alsa-devel@alsa-project.org, Arnd Bergmann , Nicolas Ferre , linux-kernel@vger.kernel.org, alexandre.belloni@free-electrons.com, Alexander Stein , linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH v3] ALSA: atmel: fix building the ac97 driver for at91-multiplatform X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Signed-off-by: Alexandre Belloni --- Changes in v3: - added my SoB 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..e458957c5f52 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"