Browse Source

OMAPFB: make debug message more useful

Make the debug message useful by printing the name of the device
that no associated driver could be found for.

Signed-off-by: Andy Doan <andy.doan@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Andy Doan 14 years ago
parent
commit
c5f18d7bab
1 changed files with 2 additions and 1 deletions
  1. 2 1
      drivers/video/omap2/omapfb/omapfb-main.c

+ 2 - 1
drivers/video/omap2/omapfb/omapfb-main.c

@@ -2373,7 +2373,8 @@ static int omapfb_probe(struct platform_device *pdev)
 		omap_dss_get_device(dssdev);
 
 		if (!dssdev->driver) {
-			dev_err(&pdev->dev, "no driver for display\n");
+			dev_err(&pdev->dev, "no driver for display: %s\n",
+				dssdev->name);
 			r = -ENODEV;
 		}