summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/omapfb
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-08-04 14:37:29 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-09-30 16:16:18 +0300
commitbab59b4417ea1380578358bedaeb714de6f1f6a7 (patch)
tree9d7a7f2731667fd99ccd0eb93831c215e027e614 /drivers/video/omap2/omapfb
parentdc35835c6f4bf3f15b68c723c9b7540cf11b9ad6 (diff)
downloadop-kernel-dev-bab59b4417ea1380578358bedaeb714de6f1f6a7.zip
op-kernel-dev-bab59b4417ea1380578358bedaeb714de6f1f6a7.tar.gz
OMAP: OMAPFB: make omapfb start even when a display is missing a driver
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>
Diffstat (limited to 'drivers/video/omap2/omapfb')
-rw-r--r--drivers/video/omap2/omapfb/omapfb-main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
index e5a64b3..cd2cae8e 100644
--- a/drivers/video/omap2/omapfb/omapfb-main.c
+++ b/drivers/video/omap2/omapfb/omapfb-main.c
@@ -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++];
OpenPOWER on IntegriCloud