diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-01-19 16:10:24 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-02-19 06:08:51 -0500 |
commit | ff6433225b08d74f77f6eb4c5bf5ca434a371492 (patch) | |
tree | be8c4058a13441562fed3dd2720a788419c52209 | |
parent | e6b9c1f8a623bfaa545067df73213db1c9c8e7af (diff) |
ARM: clcd: clean up CLCD announcement printks
Make the CLCD announcement printk say which primecell part number
has been found. Display the revision as an unsigned decimal, and
display only the first 8 hex digits of the base address unless it's
larger.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | drivers/video/amba-clcd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c index 1c2c68356ea7..aedbb345f8a9 100644 --- a/drivers/video/amba-clcd.c +++ b/drivers/video/amba-clcd.c | |||
@@ -443,8 +443,8 @@ static int clcdfb_register(struct clcd_fb *fb) | |||
443 | 443 | ||
444 | fb_set_var(&fb->fb, &fb->fb.var); | 444 | fb_set_var(&fb->fb, &fb->fb.var); |
445 | 445 | ||
446 | printk(KERN_INFO "CLCD: %s hardware, %s display\n", | 446 | dev_info(&fb->dev->dev, "%s hardware, %s display\n", |
447 | fb->board->name, fb->panel->mode.name); | 447 | fb->board->name, fb->panel->mode.name); |
448 | 448 | ||
449 | ret = register_framebuffer(&fb->fb); | 449 | ret = register_framebuffer(&fb->fb); |
450 | if (ret == 0) | 450 | if (ret == 0) |
@@ -486,6 +486,10 @@ static int clcdfb_probe(struct amba_device *dev, struct amba_id *id) | |||
486 | fb->dev = dev; | 486 | fb->dev = dev; |
487 | fb->board = board; | 487 | fb->board = board; |
488 | 488 | ||
489 | dev_info(&fb->dev->dev, "PL%03x rev%u at 0x%08llx\n", | ||
490 | amba_part(dev), amba_rev(dev), | ||
491 | (unsigned long long)dev->res.start); | ||
492 | |||
489 | ret = fb->board->setup(fb); | 493 | ret = fb->board->setup(fb); |
490 | if (ret) | 494 | if (ret) |
491 | goto free_fb; | 495 | goto free_fb; |