diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2018-01-29 03:44:05 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-02-12 12:45:16 +0100 |
commit | 6dea9df84aa2c2c1c645fac933adf1c4e0c20ac7 (patch) | |
tree | 5a4eaac7e23193c794f85053e0092e00cd5aac77 /sound/soc/atmel/atmel-pdmic.c | |
parent | ASoC: sh: siu: replace platform to component (diff) | |
download | linux-6dea9df84aa2c2c1c645fac933adf1c4e0c20ac7.tar.xz linux-6dea9df84aa2c2c1c645fac933adf1c4e0c20ac7.zip |
ASoC: atmel: replace platform to component
Now platform can be replaced to component, let's do it.
To avoid complex operation, this patch adds device pointer
to atmel_classd.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/atmel/atmel-pdmic.c')
-rw-r--r-- | sound/soc/atmel/atmel-pdmic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/atmel/atmel-pdmic.c b/sound/soc/atmel/atmel-pdmic.c index 8e3d34be9e69..4eea738c1047 100644 --- a/sound/soc/atmel/atmel-pdmic.c +++ b/sound/soc/atmel/atmel-pdmic.c @@ -32,6 +32,7 @@ struct atmel_pdmic { struct regmap *regmap; struct clk *pclk; struct clk *gclk; + struct device *dev; int irq; struct snd_pcm_substream *substream; const struct atmel_pdmic_pdata *pdata; @@ -206,7 +207,7 @@ atmel_pdmic_platform_configure_dma(struct snd_pcm_substream *substream, ret = snd_hwparams_to_dma_slave_config(substream, params, slave_config); if (ret) { - dev_err(rtd->platform->dev, + dev_err(dd->dev, "hw params to dma slave configure failed\n"); return ret; } @@ -596,6 +597,7 @@ static int atmel_pdmic_probe(struct platform_device *pdev) return -ENOMEM; dd->pdata = pdata; + dd->dev = dev; dd->irq = platform_get_irq(pdev, 0); if (dd->irq < 0) { |