diff options
Diffstat (limited to 'drivers/video/cobalt_lcdfb.c')
-rw-r--r-- | drivers/video/cobalt_lcdfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/cobalt_lcdfb.c b/drivers/video/cobalt_lcdfb.c index 42fe155aba0..e02764319ff 100644 --- a/drivers/video/cobalt_lcdfb.c +++ b/drivers/video/cobalt_lcdfb.c | |||
@@ -303,7 +303,7 @@ static int __devinit cobalt_lcdfb_probe(struct platform_device *dev) | |||
303 | return -EBUSY; | 303 | return -EBUSY; |
304 | } | 304 | } |
305 | 305 | ||
306 | info->screen_size = res->end - res->start + 1; | 306 | info->screen_size = resource_size(res); |
307 | info->screen_base = ioremap(res->start, info->screen_size); | 307 | info->screen_base = ioremap(res->start, info->screen_size); |
308 | info->fbops = &cobalt_lcd_fbops; | 308 | info->fbops = &cobalt_lcd_fbops; |
309 | info->fix = cobalt_lcdfb_fix; | 309 | info->fix = cobalt_lcdfb_fix; |