aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Moysan <olivier.moysan@st.com>2017-10-19 09:03:22 -0400
committerMark Brown <broonie@kernel.org>2017-10-21 06:16:59 -0400
commit3c6f6c53ab4df585639bbe647b45aa81ca54bdd2 (patch)
tree2ca37a774a578bf958781cbff803873e28b6cfea
parenta4529d2b885747bb9393d507cd28649052d733f3 (diff)
ASoC: stm32: sai: Fix get reset controller
Use devm version of reset_control_get function to manage driver removing properly. Signed-off-by: Olivier Moysan <olivier.moysan@st.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/stm/stm32_sai.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/stm/stm32_sai.c b/sound/soc/stm/stm32_sai.c
index 1258bef4dcb3..5fe878ace605 100644
--- a/sound/soc/stm/stm32_sai.c
+++ b/sound/soc/stm/stm32_sai.c
@@ -85,7 +85,7 @@ static int stm32_sai_probe(struct platform_device *pdev)
85 } 85 }
86 86
87 /* reset */ 87 /* reset */
88 rst = reset_control_get_exclusive(&pdev->dev, NULL); 88 rst = devm_reset_control_get_exclusive(&pdev->dev, NULL);
89 if (!IS_ERR(rst)) { 89 if (!IS_ERR(rst)) {
90 reset_control_assert(rst); 90 reset_control_assert(rst);
91 udelay(2); 91 udelay(2);