drm/msm/hdmi: silence -EPROBE_DEFER warning
authorBrian Masney <masneyb@onstation.org>
Thu, 15 Aug 2019 00:48:51 +0000 (20:48 -0400)
committerRob Clark <robdclark@chromium.org>
Sat, 2 Nov 2019 16:43:24 +0000 (09:43 -0700)
Silence a warning message due to an -EPROBE_DEFER error to help cleanup
the system boot log.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/hdmi/hdmi_phy.c

index 1697e61f9c2f73941b86a00f103f38ba11e10c39..8a38d4b95102ceadcf3b7d9bbb1fa4ed3e3eff00 100644 (file)
@@ -29,8 +29,12 @@ static int msm_hdmi_phy_resource_init(struct hdmi_phy *phy)
                reg = devm_regulator_get(dev, cfg->reg_names[i]);
                if (IS_ERR(reg)) {
                        ret = PTR_ERR(reg);
-                       DRM_DEV_ERROR(dev, "failed to get phy regulator: %s (%d)\n",
-                               cfg->reg_names[i], ret);
+                       if (ret != -EPROBE_DEFER) {
+                               DRM_DEV_ERROR(dev,
+                                             "failed to get phy regulator: %s (%d)\n",
+                                             cfg->reg_names[i], ret);
+                       }
+
                        return ret;
                }