[POWERPC] XilinxFB: add banner output to probe routine when DEBUG is defined
authorGrant Likely <grant.likely@secretlab.ca>
Thu, 4 Oct 2007 16:48:36 +0000 (10:48 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 10 Oct 2007 00:11:07 +0000 (18:11 -0600)
Debug support: when DEBUG is defined, output relevant details to the
log about the framebuffer registration.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Andrei Konovalov <akonovalov@ru.mvista.com>
drivers/video/xilinxfb.c

index 4bc67ab56afa0fcf748a2f50f3045cd2f9d6942e..1a5f1e429c4d855491fccddba507ead504cd07f5 100644 (file)
@@ -287,6 +287,11 @@ xilinxfb_drv_probe(struct device *dev)
                goto failed4;
        }
 
+       /* Put a banner in the log (for DEBUG) */
+       dev_dbg(dev, "regs: phys=%x, virt=%p\n",
+               drvdata->regs_phys, drvdata->regs);
+       dev_dbg(dev, "fb: phys=%p, virt=%p, size=%x\n",
+               (void*)drvdata->fb_phys, drvdata->fb_virt, FB_SIZE);
        return 0;       /* success */
 
 failed4: