diff options
author | Joe Perches <joe@perches.com> | 2013-09-19 21:35:55 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-10-29 06:53:07 -0400 |
commit | 31b6780c15a4e3a90fe260e977f5186772ce7afb (patch) | |
tree | 9147371d1b0f5b6dbf1806a7af125552a67fbc3b /drivers/video/arcfb.c | |
parent | f51a07d05c5142e73f781d878f411d63d3548a49 (diff) |
framebuffer: Use fb_<level>
Neaten and shorten the code using the new fb_<level> macros.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/arcfb.c')
-rw-r--r-- | drivers/video/arcfb.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/video/arcfb.c b/drivers/video/arcfb.c index e43401afdd03..1b0b233b8b39 100644 --- a/drivers/video/arcfb.c +++ b/drivers/video/arcfb.c | |||
@@ -556,9 +556,8 @@ static int arcfb_probe(struct platform_device *dev) | |||
556 | goto err1; | 556 | goto err1; |
557 | } | 557 | } |
558 | } | 558 | } |
559 | printk(KERN_INFO | 559 | fb_info(info, "Arc frame buffer device, using %dK of video memory\n", |
560 | "fb%d: Arc frame buffer device, using %dK of video memory\n", | 560 | videomemorysize >> 10); |
561 | info->node, videomemorysize >> 10); | ||
562 | 561 | ||
563 | /* this inits the lcd but doesn't clear dirty pixels */ | 562 | /* this inits the lcd but doesn't clear dirty pixels */ |
564 | for (i = 0; i < num_cols * num_rows; i++) { | 563 | for (i = 0; i < num_cols * num_rows; i++) { |
@@ -572,8 +571,7 @@ static int arcfb_probe(struct platform_device *dev) | |||
572 | /* if we were told to splash the screen, we just clear it */ | 571 | /* if we were told to splash the screen, we just clear it */ |
573 | if (!nosplash) { | 572 | if (!nosplash) { |
574 | for (i = 0; i < num_cols * num_rows; i++) { | 573 | for (i = 0; i < num_cols * num_rows; i++) { |
575 | printk(KERN_INFO "fb%d: splashing lcd %d\n", | 574 | fb_info(info, "splashing lcd %d\n", i); |
576 | info->node, i); | ||
577 | ks108_set_start_line(par, i, 0); | 575 | ks108_set_start_line(par, i, 0); |
578 | ks108_clear_lcd(par, i); | 576 | ks108_clear_lcd(par, i); |
579 | } | 577 | } |