From: Tom Gundersen Date: Sat, 7 Sep 2013 14:08:35 +0000 (+0200) Subject: simplefb: print some info about the registered fb X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9f192a92286c41c32b0929e60ac7136baa5bd2a8;p=linux-beck.git simplefb: print some info about the registered fb This is similar to the output printed by efifb. Signed-off-by: Tom Gundersen Acked-by: Stephen Warren Cc: David Herrmann Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c index ad46d2dd55a2..08c764cfeff3 100644 --- a/drivers/video/simplefb.c +++ b/drivers/video/simplefb.c @@ -220,6 +220,14 @@ static int simplefb_probe(struct platform_device *pdev) } info->pseudo_palette = (void *)(info + 1); + dev_info(&pdev->dev, "framebuffer at 0x%lx, 0x%x bytes, mapped to 0x%p\n", + info->fix.smem_start, info->fix.smem_len, + info->screen_base); + dev_info(&pdev->dev, "format=%s, mode=%dx%dx%d, linelength=%d\n", + params.format->name, + info->var.xres, info->var.yres, + info->var.bits_per_pixel, info->fix.line_length); + ret = register_framebuffer(info); if (ret < 0) { dev_err(&pdev->dev, "Unable to register simplefb: %d\n", ret);