From: Tomi Valkeinen Date: Thu, 19 Dec 2013 14:10:13 +0000 (+0200) Subject: OMAPFB: give informative print when probe succeeds X-Git-Tag: v3.14-rc1~105^2^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab7bf423af05542db94021cf9dbf1b0bf86226b1;p=kernel%2Fkernel-generic.git OMAPFB: give informative print when probe succeeds It is quite common to have omapfb probe deferred because of a missing resource, and to get omapfb probed succesfully a bit later. This works fine. However, omapfb does not give any print on a successful probe, so if the omapfb is actually never probed again after deferral, this is not shown in the log. To help debugging, add a simple print from omapfb at the end of its probe, saying which display it is using and in which resolution. Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 27d6905..2ff9f03 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c @@ -2557,6 +2557,15 @@ static int omapfb_probe(struct platform_device *pdev) goto cleanup; } + if (def_display) { + u16 w, h; + + def_display->driver->get_resolution(def_display, &w, &h); + + dev_info(fbdev->dev, "using display '%s' mode %dx%d\n", + def_display->name, w, h); + } + return 0; cleanup: