diff mbox

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

Message ID a128473d585314a01420a5869949065a549119e3.1309368631.git.nicolas.ferre@atmel.com
State New
Headers show

Commit Message

Nicolas Ferre June 29, 2011, 6 p.m. UTC
Useful for future dmaengine use.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/misc/atmel-ssc.c  |    1 +
 include/linux/atmel-ssc.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

Comments

Mark Brown June 29, 2011, 5:48 p.m. UTC | #1
On Wed, Jun 29, 2011 at 08:00:16PM +0200, Nicolas Ferre wrote:

>  struct ssc_device {
>  	struct list_head	list;
> +	resource_size_t		phybase;

The type here looks rather wrong?
diff mbox

Patch

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..2bab4b4 100644
--- a/include/linux/atmel-ssc.h
+++ b/include/linux/atmel-ssc.h
@@ -6,6 +6,7 @@ 
 
 struct ssc_device {
 	struct list_head	list;
+	resource_size_t		phybase;
 	void __iomem		*regs;
 	struct platform_device	*pdev;
 	struct clk		*clk;