Skip to content

Commit

Permalink
ASoC: stm32: sai: Fix get reset controller
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Olivier Moysan authored and Mark Brown committed Oct 21, 2017
1 parent a4529d2 commit 3c6f6c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/stm/stm32_sai.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static int stm32_sai_probe(struct platform_device *pdev)
}

/* reset */
rst = reset_control_get_exclusive(&pdev->dev, NULL);
rst = devm_reset_control_get_exclusive(&pdev->dev, NULL);
if (!IS_ERR(rst)) {
reset_control_assert(rst);
udelay(2);
Expand Down

0 comments on commit 3c6f6c5

Please sign in to comment.