Skip to content

Commit

Permalink
drm/stm: dsi: Avoid printing errors for -EPROBE_DEFER
Browse files Browse the repository at this point in the history
Don't print error when probe deferred error is returned.

Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Signed-off-by: Yannick Fertre <yannick.fertre@foss.st.com>
Tested-by: Yannick Fertre <yannick.fertre@foss.st.com>
Signed-off-by: Philippe Cornu <philippe.cornu@foss.st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210222092205.32086-2-raphael.gallais-pou@foss.st.com
  • Loading branch information
Yannick Fertre authored and Philippe Cornu committed Mar 8, 2021
1 parent ac4eb83 commit edf2085
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,7 @@ static int dw_mipi_dsi_stm_probe(struct platform_device *pdev)
dsi->vdd_supply = devm_regulator_get(dev, "phy-dsi");
if (IS_ERR(dsi->vdd_supply)) {
ret = PTR_ERR(dsi->vdd_supply);
if (ret != -EPROBE_DEFER)
DRM_ERROR("Failed to request regulator: %d\n", ret);
dev_err_probe(dev, ret, "Failed to request regulator\n");
return ret;
}

Expand All @@ -377,9 +376,7 @@ 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);
if (ret != -EPROBE_DEFER)
DRM_ERROR("Unable to get pll reference clock: %d\n",
ret);
dev_err_probe(dev, ret, "Unable to get pll reference clock\n");
goto err_clk_get;
}

Expand Down Expand Up @@ -419,7 +416,7 @@ static int dw_mipi_dsi_stm_probe(struct platform_device *pdev)
dsi->dsi = dw_mipi_dsi_probe(pdev, &dw_mipi_dsi_stm_plat_data);
if (IS_ERR(dsi->dsi)) {
ret = PTR_ERR(dsi->dsi);
DRM_ERROR("Failed to initialize mipi dsi host: %d\n", ret);
dev_err_probe(dev, ret, "Failed to initialize mipi dsi host\n");
goto err_dsi_probe;
}

Expand Down

0 comments on commit edf2085

Please sign in to comment.