Skip to content

Commit

Permalink
OMAP: OMAPFB: make omapfb start even when a display is missing a driver
Browse files Browse the repository at this point in the history
Currently omapfb wants that all the display devices have a driver,
otherwise omapfb refuses to start. There's no real requirement to act
like that, and this patch will make omapfb give a warning and skip that
device.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Tomi Valkeinen committed Sep 30, 2011
1 parent dc35835 commit bab59b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/video/omap2/omapfb/omapfb-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2373,9 +2373,10 @@ static int omapfb_probe(struct platform_device *pdev)
omap_dss_get_device(dssdev);

if (!dssdev->driver) {
dev_err(&pdev->dev, "no driver for display: %s\n",
dev_warn(&pdev->dev, "no driver for display: %s\n",
dssdev->name);
r = -ENODEV;
omap_dss_put_device(dssdev);
continue;
}

d = &fbdev->displays[fbdev->num_displays++];
Expand Down

0 comments on commit bab59b4

Please sign in to comment.