From patchwork Fri Jul 1 14:46:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Ferre X-Patchwork-Id: 935882 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p61Ddnw9027146 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 1 Jul 2011 13:40:10 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qcdwa-0002aH-N0; Fri, 01 Jul 2011 13:39:40 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Qcdwa-0005t3-BO; Fri, 01 Jul 2011 13:39:40 +0000 Received: from newsmtp5.atmel.com ([204.2.163.5] helo=sjogate2.atmel.com) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QcdwX-0005sk-9F for linux-arm-kernel@lists.infradead.org; Fri, 01 Jul 2011 13:39:37 +0000 Received: from meyreuil.atmel.fr ([10.159.254.132]) by sjogate2.atmel.com (8.13.6/8.13.6) with ESMTP id p61Da0ve006901; Fri, 1 Jul 2011 06:36:00 -0700 (PDT) Received: from bendor.rfo.atmel.com ([10.159.245.201]) by meyreuil.atmel.fr (8.11.7p1+Sun/8.11.7) with ESMTP id p61Dd4a05681; Fri, 1 Jul 2011 15:39:04 +0200 (MEST) From: Nicolas Ferre To: alsa-devel@alsa-project.org, broonie@opensource.wolfsonmicro.com, lrg@ti.com Subject: [PATCH V2 2/5] ASoC: atmel-ssc: add phybase in device structure Date: Fri, 1 Jul 2011 16:46:37 +0200 Message-Id: <1309531597-2008-1-git-send-email-nicolas.ferre@atmel.com> X-Mailer: git-send-email 1.7.3 In-Reply-To: <20110629174822.GB13051@opensource.wolfsonmicro.com> References: <20110629174822.GB13051@opensource.wolfsonmicro.com> MIME-Version: 1.0 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110701_093937_560247_67629041 X-CRM114-Status: GOOD ( 10.22 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain Cc: Nicolas Ferre , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 01 Jul 2011 13:40:10 +0000 (UTC) Useful for future dmaengine use. Signed-off-by: Nicolas Ferre --- V2: change type to phys_addr_t. drivers/misc/atmel-ssc.c | 1 + include/linux/atmel-ssc.h | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c index 4afffe6..27c9ffa 100644 --- a/drivers/misc/atmel-ssc.c +++ b/drivers/misc/atmel-ssc.c @@ -101,6 +101,7 @@ static int __init ssc_probe(struct platform_device *pdev) retval = -EINVAL; goto out_clk; } + ssc->phybase = regs->start; /* disable all interrupts */ clk_enable(ssc->clk); diff --git a/include/linux/atmel-ssc.h b/include/linux/atmel-ssc.h index 0602339..6ff634e 100644 --- a/include/linux/atmel-ssc.h +++ b/include/linux/atmel-ssc.h @@ -6,6 +6,7 @@ struct ssc_device { struct list_head list; + phys_addr_t phybase; void __iomem *regs; struct platform_device *pdev; struct clk *clk;