summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-wm8958.c
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2017-06-12 17:21:26 +0300
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:50:09 +0800
commit1c3a98e0fcf19d9da94e7a0a98814628cbf1736d (patch)
tree1a072b2661aeb2e7a3573d437467909aba603e99 /sound/soc/fsl/imx-wm8958.c
parent19dd93807ed04efacc0f5f569f8a892d3f4b0d3e (diff)
MLK-15067: ASoC: fsl: imx-wm8958: Don't fail if gpr is missing
There are boards without gpr setting, so it's better not to fail in such cases and only print a warning. This is related to commit ce72b6d2668049 ("MLK-13574-1: ASoC: imx-wm8960: remove the gpr dependency"). Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/fsl/imx-wm8958.c')
-rw-r--r--sound/soc/fsl/imx-wm8958.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/fsl/imx-wm8958.c b/sound/soc/fsl/imx-wm8958.c
index c1d153d8c902..df2e6560b7de 100644
--- a/sound/soc/fsl/imx-wm8958.c
+++ b/sound/soc/fsl/imx-wm8958.c
@@ -451,8 +451,7 @@ static int imx_wm8958_probe(struct platform_device *pdev)
ret = of_parse_phandle_with_fixed_args(pdev->dev.of_node, "gpr", 3,
0, &args);
if (ret) {
- dev_err(&pdev->dev, "failed to get gpr property\n");
- goto fail;
+ dev_warn(&pdev->dev, "failed to get gpr property\n");
} else {
data->gpr = syscon_node_to_regmap(args.np);
if (IS_ERR(data->gpr)) {