OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
557270e
)
ASoC: stm32: spdifrx: fix regmap status check
author
Olivier Moysan
<olivier.moysan@st.com>
Wed, 18 Mar 2020 14:41:23 +0000
(15:41 +0100)
committer
Mark Brown
<broonie@kernel.org>
Wed, 18 Mar 2020 19:38:09 +0000
(19:38 +0000)
Release resources when exiting on error.
Fixes:
1a5c0b28fc56
("ASoC: stm32: spdifrx: manage identification registers")
Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Link:
https://lore.kernel.org/r/20200318144125.9163-2-olivier.moysan@st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/stm/stm32_spdifrx.c
patch
|
blob
|
history
diff --git
a/sound/soc/stm/stm32_spdifrx.c
b/sound/soc/stm/stm32_spdifrx.c
index
3769d9c
..
e6e7589
100644
(file)
--- a/
sound/soc/stm/stm32_spdifrx.c
+++ b/
sound/soc/stm/stm32_spdifrx.c
@@
-1009,6
+1009,8
@@
static int stm32_spdifrx_probe(struct platform_device *pdev)
if (idr == SPDIFRX_IPIDR_NUMBER) {
ret = regmap_read(spdifrx->regmap, STM32_SPDIFRX_VERR, &ver);
+ if (ret)
+ goto error;
dev_dbg(&pdev->dev, "SPDIFRX version: %lu.%lu registered\n",
FIELD_GET(SPDIFRX_VERR_MAJ_MASK, ver),