OMAP: OMAPFB: make omapfb start even when a display is missing a driver
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 4 Aug 2011 11:37:29 +0000 (14:37 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 30 Sep 2011 13:16:18 +0000 (16:16 +0300)
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>
drivers/video/omap2/omapfb/omapfb-main.c

index e5a64b38e52ab8a8bfb556dab6e018c01409133a..cd2cae8e96ff63f784691657da5488fb3f0a748d 100644 (file)
@@ -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++];
This page took 0.025371 seconds and 5 git commands to generate.