drm/stm: dsi: stm mipi dsi doesn't print error on probe deferral
authorEtienne Carriere <etienne.carriere@st.com>
Tue, 21 Jan 2020 10:24:05 +0000 (11:24 +0100)
committerBenjamin Gaignard <benjamin.gaignard@st.com>
Tue, 4 Feb 2020 10:47:43 +0000 (11:47 +0100)
Change DSI driver to not print an error trace when probe
is deferred for a clock resource.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Reviewed-by: Philippe Cornu <philippe.cornu@st.com>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1579602245-7577-1-git-send-email-yannick.fertre@st.com
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c

index 4b165635b2d40fe26417626e874dcadc19a555fc..2e1f2664495d00371f78ddefd75f8aa002f8f81a 100644 (file)
@@ -377,7 +377,9 @@ static int dw_mipi_dsi_stm_probe(struct platform_device *pdev)
        dsi->pllref_clk = devm_clk_get(dev, "ref");
        if (IS_ERR(dsi->pllref_clk)) {
                ret = PTR_ERR(dsi->pllref_clk);
-               DRM_ERROR("Unable to get pll reference clock: %d\n", ret);
+               if (ret != -EPROBE_DEFER)
+                       DRM_ERROR("Unable to get pll reference clock: %d\n",
+                                 ret);
                goto err_clk_get;
        }