Commit e32c8c2a authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Thierry Reding

drm/tegra: hdmi: Silence deferred-probe error

Driver fails to probe with -EPROBE_DEFER, which produces a bit noisy error
message in KMSG during kernel's boot up. This happens because voltage
regulators tend to be probed later than the DRM driver.
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 8f839fb6
...@@ -1648,6 +1648,7 @@ static irqreturn_t tegra_hdmi_irq(int irq, void *data) ...@@ -1648,6 +1648,7 @@ static irqreturn_t tegra_hdmi_irq(int irq, void *data)
static int tegra_hdmi_probe(struct platform_device *pdev) static int tegra_hdmi_probe(struct platform_device *pdev)
{ {
const char *level = KERN_ERR;
struct tegra_hdmi *hdmi; struct tegra_hdmi *hdmi;
struct resource *regs; struct resource *regs;
int err; int err;
...@@ -1686,21 +1687,36 @@ static int tegra_hdmi_probe(struct platform_device *pdev) ...@@ -1686,21 +1687,36 @@ static int tegra_hdmi_probe(struct platform_device *pdev)
} }
hdmi->hdmi = devm_regulator_get(&pdev->dev, "hdmi"); hdmi->hdmi = devm_regulator_get(&pdev->dev, "hdmi");
if (IS_ERR(hdmi->hdmi)) { err = PTR_ERR_OR_ZERO(hdmi->hdmi);
dev_err(&pdev->dev, "failed to get HDMI regulator\n"); if (err) {
return PTR_ERR(hdmi->hdmi); if (err == -EPROBE_DEFER)
level = KERN_DEBUG;
dev_printk(level, &pdev->dev,
"failed to get HDMI regulator: %d\n", err);
return err;
} }
hdmi->pll = devm_regulator_get(&pdev->dev, "pll"); hdmi->pll = devm_regulator_get(&pdev->dev, "pll");
if (IS_ERR(hdmi->pll)) { err = PTR_ERR_OR_ZERO(hdmi->pll);
dev_err(&pdev->dev, "failed to get PLL regulator\n"); if (err) {
return PTR_ERR(hdmi->pll); if (err == -EPROBE_DEFER)
level = KERN_DEBUG;
dev_printk(level, &pdev->dev,
"failed to get PLL regulator: %d\n", err);
return err;
} }
hdmi->vdd = devm_regulator_get(&pdev->dev, "vdd"); hdmi->vdd = devm_regulator_get(&pdev->dev, "vdd");
if (IS_ERR(hdmi->vdd)) { err = PTR_ERR_OR_ZERO(hdmi->vdd);
dev_err(&pdev->dev, "failed to get VDD regulator\n"); if (err) {
return PTR_ERR(hdmi->vdd); if (err == -EPROBE_DEFER)
level = KERN_DEBUG;
dev_printk(level, &pdev->dev,
"failed to get VDD regulator: %d\n", err);
return err;
} }
hdmi->output.dev = &pdev->dev; hdmi->output.dev = &pdev->dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment