ASoC: atmel-ssc: add phybase in device structure
authorNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 20 Nov 2012 08:38:17 +0000 (16:38 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 20 Nov 2012 09:18:52 +0000 (18:18 +0900)
Useful for future dmaengine use.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/misc/atmel-ssc.c
include/linux/atmel-ssc.h

index a769719e36bf534df4cc718efe4771a736da947f..d07a9eda7fff4a29aebc43892658b339b4ebb196 100644 (file)
@@ -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");
index 1ca0e3292bc98e1cd1ade0ad74f54f0939f9d745..deb0ae58b99bb3724bee4376b0a376b563c29cff 100644 (file)
@@ -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;