浏览代码

[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>
Grant Likely 17 年之前
父节点
当前提交
258de4badd
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      drivers/video/xilinxfb.c

+ 5 - 0
drivers/video/xilinxfb.c

@@ -287,6 +287,11 @@ xilinxfb_drv_probe(struct device *dev)
 		goto failed4;
 		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 */
 	return 0;	/* success */
 
 
 failed4:
 failed4: