diff mbox

[1/2] ASoC: atmel-ssc: add phybase in device structure

Message ID 1353400698-19384-1-git-send-email-voice.shen@atmel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Bo Shen Nov. 20, 2012, 8:38 a.m. UTC
From: Nicolas Ferre <nicolas.ferre@atmel.com>

Useful for future dmaengine use.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
 drivers/misc/atmel-ssc.c  |    2 ++
 include/linux/atmel-ssc.h |    1 +
 2 files changed, 3 insertions(+)

Comments

Mark Brown Nov. 20, 2012, 9:21 a.m. UTC | #1
On Tue, Nov 20, 2012 at 04:38:17PM +0800, Bo Shen wrote:
> From: Nicolas Ferre <nicolas.ferre@atmel.com>
> 
> Useful for future dmaengine use.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c
index a769719..d07a9ed 100644
--- a/drivers/misc/atmel-ssc.c
+++ b/drivers/misc/atmel-ssc.c
@@ -157,6 +157,8 @@  static int ssc_probe(struct platform_device *pdev)
 		return -EINVAL;
 	}
 
+	ssc->phybase = regs->start;
+
 	ssc->clk = devm_clk_get(&pdev->dev, "pclk");
 	if (IS_ERR(ssc->clk)) {
 		dev_dbg(&pdev->dev, "no pclk clock defined\n");
diff --git a/include/linux/atmel-ssc.h b/include/linux/atmel-ssc.h
index 1ca0e32..deb0ae5 100644
--- a/include/linux/atmel-ssc.h
+++ b/include/linux/atmel-ssc.h
@@ -11,6 +11,7 @@  struct atmel_ssc_platform_data {
 
 struct ssc_device {
 	struct list_head	list;
+	resource_size_t		phybase;
 	void __iomem		*regs;
 	struct platform_device	*pdev;
 	struct atmel_ssc_platform_data *pdata;