提交 31974361 编写于 作者: N Nicolas Ferre 提交者: Mark Brown

ASoC: atmel-ssc: add phybase in device structure

Useful for future dmaengine use.
Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册