summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2017-06-12 17:21:26 +0300
committerAnson Huang <Anson.Huang@nxp.com>2017-06-14 16:44:12 +0800
commit50c6037dc5c4c13606ec1eba9ff76af15f9be009 (patch)
treef700e0f4629209217679f28f68d955462a41027b /sound
parent2cdc9233de1f381e610aff3f214d183c046e5909 (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> (cherry picked from commit 882c373c74aecd27aad64062d4cceb89a4371c2e)
Diffstat (limited to 'sound')
-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 3e38a241d6ed..73e57557f5fc 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)) {