Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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");
+1 −0
Original line number Diff line number Diff line
@@ -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;