Skip to content

Commit

Permalink
OMAPDSS: Return right error during connector probe
Browse files Browse the repository at this point in the history
While using HDMI connector driver with sil9022 encoder
came across issue where connector driver is probed first.
This resulted in error. A deffered probe solved this.
Most connector drivers need a encoder driver as their
video source. This patch ensures we do a probe defferal
if video source is not present for connector drivers.

Signed-off-by: Sathya Prakash M R <sathyap@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Sathya Prakash M R authored and Tomi Valkeinen committed Sep 19, 2013
1 parent 272b98c commit 0fd9560
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/video/omap2/displays-new/connector-analog-tv.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ static int tvc_probe_pdata(struct platform_device *pdev)
in = omap_dss_find_output(pdata->source);
if (in == NULL) {
dev_err(&pdev->dev, "Failed to find video source\n");
return -ENODEV;
return -EPROBE_DEFER;
}

ddata->in = in;
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap2/displays-new/connector-dvi.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ static int dvic_probe_pdata(struct platform_device *pdev)
in = omap_dss_find_output(pdata->source);
if (in == NULL) {
dev_err(&pdev->dev, "Failed to find video source\n");
return -ENODEV;
return -EPROBE_DEFER;
}

ddata->in = in;
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap2/displays-new/connector-hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static int hdmic_probe_pdata(struct platform_device *pdev)
in = omap_dss_find_output(pdata->source);
if (in == NULL) {
dev_err(&pdev->dev, "Failed to find video source\n");
return -ENODEV;
return -EPROBE_DEFER;
}

ddata->in = in;
Expand Down

0 comments on commit 0fd9560

Please sign in to comment.