Browse Source

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>
Olivier Moysan 7 years ago
parent
commit
3c6f6c53ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sound/soc/stm/stm32_sai.c

+ 1 - 1
sound/soc/stm/stm32_sai.c

@@ -85,7 +85,7 @@ static int stm32_sai_probe(struct platform_device *pdev)
 	}
 	}
 
 
 	/* reset */
 	/* reset */
-	rst = reset_control_get_exclusive(&pdev->dev, NULL);
+	rst = devm_reset_control_get_exclusive(&pdev->dev, NULL);
 	if (!IS_ERR(rst)) {
 	if (!IS_ERR(rst)) {
 		reset_control_assert(rst);
 		reset_control_assert(rst);
 		udelay(2);
 		udelay(2);