aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/platinumfb.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-06-09 12:13:32 -0400
committerJiri Kosina <jkosina@suse.cz>2011-06-10 08:55:36 -0400
commit28f65c11f2ffb3957259dece647a24f8ad2e241b (patch)
tree6b7621d09d10df89eedd908d4506fb9f457a909f /drivers/video/platinumfb.c
parent140a1ef2f91a00e1d25f0878c193abdc25bf6ebe (diff)
treewide: Convert uses of struct resource to resource_size(ptr)
Several fixes as well where the +1 was missing. Done via coccinelle scripts like: @@ struct resource *ptr; @@ - ptr->end - ptr->start + 1 + resource_size(ptr) and some grep and typing. Mostly uncompiled, no cross-compilers. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/video/platinumfb.c')
-rw-r--r--drivers/video/platinumfb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/video/platinumfb.c b/drivers/video/platinumfb.c
index ef532d9d3c99..f27ae16ead2e 100644
--- a/drivers/video/platinumfb.c
+++ b/drivers/video/platinumfb.c
@@ -567,7 +567,7 @@ static int __devinit platinumfb_probe(struct platform_device* odev)
567 * northbridge and that can fail. Only request framebuffer 567 * northbridge and that can fail. Only request framebuffer
568 */ 568 */
569 if (!request_mem_region(pinfo->rsrc_fb.start, 569 if (!request_mem_region(pinfo->rsrc_fb.start,
570 pinfo->rsrc_fb.end - pinfo->rsrc_fb.start + 1, 570 resource_size(&pinfo->rsrc_fb),
571 "platinumfb framebuffer")) { 571 "platinumfb framebuffer")) {
572 printk(KERN_ERR "platinumfb: Can't request framebuffer !\n"); 572 printk(KERN_ERR "platinumfb: Can't request framebuffer !\n");
573 framebuffer_release(info); 573 framebuffer_release(info);
@@ -658,8 +658,7 @@ static int __devexit platinumfb_remove(struct platform_device* odev)
658 iounmap(pinfo->cmap_regs); 658 iounmap(pinfo->cmap_regs);
659 659
660 release_mem_region(pinfo->rsrc_fb.start, 660 release_mem_region(pinfo->rsrc_fb.start,
661 pinfo->rsrc_fb.end - 661 resource_size(&pinfo->rsrc_fb));
662 pinfo->rsrc_fb.start + 1);
663 662
664 release_mem_region(pinfo->cmap_regs_phys, 0x1000); 663 release_mem_region(pinfo->cmap_regs_phys, 0x1000);
665 664