projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4529d2
)
ASoC: stm32: sai: Fix get reset controller
author
Olivier Moysan
<olivier.moysan@st.com>
Thu, 19 Oct 2017 13:03:22 +0000
(15:03 +0200)
committer
Mark Brown
<broonie@kernel.org>
Sat, 21 Oct 2017 10:16:59 +0000
(11:16 +0100)
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>
sound/soc/stm/stm32_sai.c
patch
|
blob
|
history
diff --git
a/sound/soc/stm/stm32_sai.c
b/sound/soc/stm/stm32_sai.c
index 1258bef4dcb37e8f8a9e0ea9d69466d64ccd02ed..5fe878ace605f71818c2d978b047357b0ad2254c 100644
(file)
--- 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)
}
/* 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);