From patchwork Sun May 4 03:25:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xia Kaixu X-Patchwork-Id: 4107131 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 029EBBFF02 for ; Sun, 4 May 2014 03:24:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 28AD9202A7 for ; Sun, 4 May 2014 03:24:44 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id B4AF52026C for ; Sun, 4 May 2014 03:24:42 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 06B5F2619F0; Sun, 4 May 2014 05:24:40 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, RCVD_IN_SORBS_WEB, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id BEC562618ED; Sun, 4 May 2014 05:24:30 +0200 (CEST) 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 A562F261987; Sun, 4 May 2014 05:24:28 +0200 (CEST) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by alsa0.perex.cz (Postfix) with ESMTP id 4E76F2617BB for ; Sun, 4 May 2014 05:24:20 +0200 (CEST) Received: by mail-pa0-f44.google.com with SMTP id ld10so2353383pab.31 for ; Sat, 03 May 2014 20:24:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=2NiKmjPKe6c1xO5whpGOCvOfroVO04sWqsmiyOXmyUY=; b=aPvDy4QPwDcDqd5dHcZYdfSau0TE3wT8lAQKZqLusi7FwKuudUspyFekuBJ8tsNG0h ui4cpm8feJmqXfd3JMf8/A4FPxsfdyPx8TBE7mo8IXGs37BozkIO4OjXjOTec8UQtrdx VfUyvbiZVGdcf+xv5r/5QhdcmckDubTF8d0Sx7f9mMQn2nypLzHslTgF/tlqdESeKMTH XwHqZZVnYG3bTPy2khH4mFd9dFgGR6PRu3/3Th45VIGwKQudfCpzle3uB+fCHfELitlU +q6C8bQovXdFZkq+vZ44E10gNWy5hh375womdTAKc+qNdh9+qKBC7cF6cC4rvtycbEJi wSBA== X-Gm-Message-State: ALoCoQlCUTMKITpEthSznUZZX5QxonW+c6HsTyYkujUaHgv2u7WYHCPjowgrvUWsTzrXaKi2rdeh X-Received: by 10.66.219.6 with SMTP id pk6mr55330056pac.9.1399173859083; Sat, 03 May 2014 20:24:19 -0700 (PDT) Received: from localhost.localdomain ([218.17.215.175]) by mx.google.com with ESMTPSA id pb7sm33403790pac.10.2014.05.03.20.24.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 03 May 2014 20:24:18 -0700 (PDT) From: Xia Kaixu To: linux-kernel@vger.kernel.org Date: Sun, 4 May 2014 11:25:21 +0800 Message-Id: <1399173921-3766-1-git-send-email-kaixu.xia@linaro.org> X-Mailer: git-send-email 1.7.9.5 Cc: alsa-devel@alsa-project.org, linaro-kernel@lists.linaro.org, Eric Miao , Arnd Bergmann , Liam Girdwood , Haojian Zhuang , Mark Brown , Russell King , linux-arm-kernel@lists.infradead.org, kaixu.xia@linaro.org Subject: [alsa-devel] [PATCH 15/15] ASoC: pxa: remove mach header dependency 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 As we are moving the mmp platform towards multiplatform support, we have to stop including platform header files. This changes the pxa-ssp sound driver file to no longer depend on mach/hardware.h and mach/dma.h. The code using the definitions from those headers is actually gone already, the only thing that was still being used was the pxa_dma_desc typedef, which we can easily work around by using the normal 'struct pxa_dma_desc' name. The pxa2xx-dma driver still uses this header, so we include it explicitly there, which is ok because that is only used on pxa, not on mmp. Signed-off-by: Arnd Bergmann Signed-off-by: Xia Kaixu Cc: Liam Girdwood Cc: Mark Brown Cc: Eric Miao Cc: Russell King Cc: Haojian Zhuang Cc: linux-arm-kernel@lists.infradead.org Cc: alsa-devel@alsa-project.org --- sound/arm/pxa2xx-pcm.c | 2 ++ sound/arm/pxa2xx-pcm.h | 3 +-- sound/soc/pxa/pxa-ssp.c | 2 -- sound/soc/pxa/pxa2xx-pcm.c | 2 ++ 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sound/arm/pxa2xx-pcm.c b/sound/arm/pxa2xx-pcm.c index e6c727b..83be8e3 100644 --- a/sound/arm/pxa2xx-pcm.c +++ b/sound/arm/pxa2xx-pcm.c @@ -14,6 +14,8 @@ #include #include +#include + #include #include #include diff --git a/sound/arm/pxa2xx-pcm.h b/sound/arm/pxa2xx-pcm.h index 2a8fc08..0033098 100644 --- a/sound/arm/pxa2xx-pcm.h +++ b/sound/arm/pxa2xx-pcm.h @@ -9,12 +9,11 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ -#include struct pxa2xx_runtime_data { int dma_ch; struct snd_dmaengine_dai_dma_data *params; - pxa_dma_desc *dma_desc_array; + struct pxa_dma_desc *dma_desc_array; dma_addr_t dma_desc_array_phys; }; diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c index a3119a0..9b19ee7 100644 --- a/sound/soc/pxa/pxa-ssp.c +++ b/sound/soc/pxa/pxa-ssp.c @@ -34,8 +34,6 @@ #include #include -#include - #include "../../arm/pxa2xx-pcm.h" #include "pxa-ssp.h" diff --git a/sound/soc/pxa/pxa2xx-pcm.c b/sound/soc/pxa/pxa2xx-pcm.c index d58b09f..42f2f01 100644 --- a/sound/soc/pxa/pxa2xx-pcm.c +++ b/sound/soc/pxa/pxa2xx-pcm.c @@ -15,6 +15,8 @@ #include #include +#include + #include #include #include