ASoC: rcar: use devm_clk_get() instead of clk_get()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
507d466c73
commit
60dbb4f174
|
@ -652,7 +652,7 @@ int rsnd_ssi_probe(struct platform_device *pdev,
|
|||
|
||||
snprintf(name, RSND_SSI_NAME_SIZE, "ssi.%d", i);
|
||||
|
||||
clk = clk_get(dev, name);
|
||||
clk = devm_clk_get(dev, name);
|
||||
if (IS_ERR(clk))
|
||||
return PTR_ERR(clk);
|
||||
|
||||
|
@ -713,7 +713,6 @@ void rsnd_ssi_remove(struct platform_device *pdev,
|
|||
int i;
|
||||
|
||||
for_each_rsnd_ssi(ssi, priv, i) {
|
||||
clk_put(ssi->clk);
|
||||
if (rsnd_ssi_dma_available(ssi))
|
||||
rsnd_dma_quit(priv, rsnd_mod_to_dma(&ssi->mod));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue