Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184859
b: refs/heads/master
c: b3f91eb
h: refs/heads/master
i:
  184857: 4294cea
  184855: bd39ba2
v: v3
  • Loading branch information
Tomi Valkeinen committed Feb 18, 2010
1 parent 8996f27 commit 6a0ff83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c121b15244c53637c3e9ca608b8816abcfbe2f8e
refs/heads/master: b3f91eb8d8d17ad3ca5da4fa9f20d2e46133fd99
9 changes: 7 additions & 2 deletions trunk/drivers/video/omap2/omapfb/omapfb-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2111,18 +2111,23 @@ static int omapfb_probe(struct platform_device *pdev)
fbdev->dev = &pdev->dev;
platform_set_drvdata(pdev, fbdev);

r = 0;
fbdev->num_displays = 0;
dssdev = NULL;
for_each_dss_dev(dssdev) {
omap_dss_get_device(dssdev);

if (!dssdev->driver) {
dev_err(&pdev->dev, "no driver for display\n");
r = -EINVAL;
goto cleanup;
r = -ENODEV;
}

fbdev->displays[fbdev->num_displays++] = dssdev;
}

if (r)
goto cleanup;

if (fbdev->num_displays == 0) {
dev_err(&pdev->dev, "no displays\n");
r = -EINVAL;
Expand Down

0 comments on commit 6a0ff83

Please sign in to comment.