Commit 31974361 authored by Nicolas Ferre's avatar Nicolas Ferre Committed by Mark Brown

ASoC: atmel-ssc: add phybase in device structure

Useful for future dmaengine use.
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 531f67e4
......@@ -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");
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment