Thread (23 messages) 23 messages, 4 authors, 2011-07-05
STALE5442d

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

From: Nicolas Ferre <hidden>
Date: 2011-06-29 16:54:33
Also in: alsa-devel, lkml
Subsystem: atm, char and misc drivers, microchip ssc driver, the rest · Maintainers: Chas Williams, Arnd Bergmann, Greg Kroah-Hartman, Claudiu Beznea, Andrei Simion, Linus Torvalds

Useful for future dmaengine use.

Signed-off-by: Nicolas Ferre <redacted>
Signed-off-by: Uwe Kleine-K?nig <redacted>
---
 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..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;
-- 
1.7.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help