diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2007-10-04 12:48:36 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2007-10-09 20:11:07 -0400 |
commit | 258de4badd5b7b5d168307638f755bd4df16c18e (patch) | |
tree | 697f55b62a54c0f583890c775305b24d2b04bd1d /drivers/video | |
parent | dcccb37e98e0444b0c6a03b303855771aa463c96 (diff) |
[POWERPC] XilinxFB: add banner output to probe routine when DEBUG is defined
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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/xilinxfb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c index 4bc67ab56afa..1a5f1e429c4d 100644 --- a/drivers/video/xilinxfb.c +++ b/drivers/video/xilinxfb.c | |||
@@ -287,6 +287,11 @@ xilinxfb_drv_probe(struct device *dev) | |||
287 | goto failed4; | 287 | goto failed4; |
288 | } | 288 | } |
289 | 289 | ||
290 | /* Put a banner in the log (for DEBUG) */ | ||
291 | dev_dbg(dev, "regs: phys=%x, virt=%p\n", | ||
292 | drvdata->regs_phys, drvdata->regs); | ||
293 | dev_dbg(dev, "fb: phys=%p, virt=%p, size=%x\n", | ||
294 | (void*)drvdata->fb_phys, drvdata->fb_virt, FB_SIZE); | ||
290 | return 0; /* success */ | 295 | return 0; /* success */ |
291 | 296 | ||
292 | failed4: | 297 | failed4: |