From 1c3a98e0fcf19d9da94e7a0a98814628cbf1736d Mon Sep 17 00:00:00 2001 From: Daniel Baluta Date: Mon, 12 Jun 2017 17:21:26 +0300 Subject: 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 --- sound/soc/fsl/imx-wm8958.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sound/soc/fsl/imx-wm8958.c') 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)) { -- cgit v1.2.3