soc: amlogic: meson-gx-pwrc-vpu: don't print error message on probe deferral
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 21 Dec 2017 19:40:52 +0000 (20:40 +0100)
committerKevin Hilman <khilman@baylibre.com>
Mon, 12 Feb 2018 22:15:46 +0000 (14:15 -0800)
The error message may be misleading in case of probe deferral
(happens on my Odroid-C2). Therefore don't print it in this case.

Fixes: 75fcb5ca4b46 "soc: amlogic: add Meson GX VPU Domains driver"
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
drivers/soc/amlogic/meson-gx-pwrc-vpu.c

index 2bdeebc..3adb2f2 100644 (file)
@@ -184,7 +184,8 @@ static int meson_gx_pwrc_vpu_probe(struct platform_device *pdev)
 
        rstc = devm_reset_control_array_get(&pdev->dev, false, false);
        if (IS_ERR(rstc)) {
-               dev_err(&pdev->dev, "failed to get reset lines\n");
+               if (PTR_ERR(rstc) != -EPROBE_DEFER)
+                       dev_err(&pdev->dev, "failed to get reset lines\n");
                return PTR_ERR(rstc);
        }