diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 16:56:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 16:56:39 -0400 |
commit | d3ec4844d449cf7af9e749f73ba2052fb7b72fc2 (patch) | |
tree | c515913e85f7e50878c83da2a88bc5a7269d087c /drivers/video | |
parent | 0003230e8200699860f0b10af524dc47bf8aecad (diff) | |
parent | df2e301fee3c2c2a87592151397ad7699bb14c37 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (43 commits)
fs: Merge split strings
treewide: fix potentially dangerous trailing ';' in #defined values/expressions
uwb: Fix misspelling of neighbourhood in comment
net, netfilter: Remove redundant goto in ebt_ulog_packet
trivial: don't touch files that are removed in the staging tree
lib/vsprintf: replace link to Draft by final RFC number
doc: Kconfig: `to be' -> `be'
doc: Kconfig: Typo: square -> squared
doc: Konfig: Documentation/power/{pm => apm-acpi}.txt
drivers/net: static should be at beginning of declaration
drivers/media: static should be at beginning of declaration
drivers/i2c: static should be at beginning of declaration
XTENSA: static should be at beginning of declaration
SH: static should be at beginning of declaration
MIPS: static should be at beginning of declaration
ARM: static should be at beginning of declaration
rcu: treewide: Do not use rcu_read_lock_held when calling rcu_dereference_check
Update my e-mail address
PCIe ASPM: forcedly -> forcibly
gma500: push through device driver tree
...
Fix up trivial conflicts:
- arch/arm/mach-ep93xx/dma-m2p.c (deleted)
- drivers/gpio/gpio-ep93xx.c (renamed and context nearby)
- drivers/net/r8169.c (just context changes)
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/atmel_lcdfb.c | 4 | ||||
-rw-r--r-- | drivers/video/aty/atyfb_base.c | 7 | ||||
-rw-r--r-- | drivers/video/au1100fb.c | 2 | ||||
-rw-r--r-- | drivers/video/cobalt_lcdfb.c | 2 | ||||
-rw-r--r-- | drivers/video/controlfb.c | 4 | ||||
-rw-r--r-- | drivers/video/ep93xx-fb.c | 4 | ||||
-rw-r--r-- | drivers/video/i810/i810.h | 2 | ||||
-rw-r--r-- | drivers/video/mb862xx/mb862xxfbdrv.c | 4 | ||||
-rw-r--r-- | drivers/video/msm/mdp.c | 3 | ||||
-rw-r--r-- | drivers/video/msm/msm_fb.c | 7 | ||||
-rw-r--r-- | drivers/video/nuc900fb.c | 2 | ||||
-rw-r--r-- | drivers/video/platinumfb.c | 5 | ||||
-rw-r--r-- | drivers/video/pxa168fb.c | 2 | ||||
-rw-r--r-- | drivers/video/udlfb.c | 1 | ||||
-rw-r--r-- | drivers/video/via/viafbdev.c | 4 |
15 files changed, 25 insertions, 28 deletions
diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index 4484c721f0f..817ab60f753 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c | |||
@@ -906,7 +906,7 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev) | |||
906 | if (map) { | 906 | if (map) { |
907 | /* use a pre-allocated memory buffer */ | 907 | /* use a pre-allocated memory buffer */ |
908 | info->fix.smem_start = map->start; | 908 | info->fix.smem_start = map->start; |
909 | info->fix.smem_len = map->end - map->start + 1; | 909 | info->fix.smem_len = resource_size(map); |
910 | if (!request_mem_region(info->fix.smem_start, | 910 | if (!request_mem_region(info->fix.smem_start, |
911 | info->fix.smem_len, pdev->name)) { | 911 | info->fix.smem_len, pdev->name)) { |
912 | ret = -EBUSY; | 912 | ret = -EBUSY; |
@@ -932,7 +932,7 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev) | |||
932 | 932 | ||
933 | /* LCDC registers */ | 933 | /* LCDC registers */ |
934 | info->fix.mmio_start = regs->start; | 934 | info->fix.mmio_start = regs->start; |
935 | info->fix.mmio_len = regs->end - regs->start + 1; | 935 | info->fix.mmio_len = resource_size(regs); |
936 | 936 | ||
937 | if (!request_mem_region(info->fix.mmio_start, | 937 | if (!request_mem_region(info->fix.mmio_start, |
938 | info->fix.mmio_len, pdev->name)) { | 938 | info->fix.mmio_len, pdev->name)) { |
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c index d7aaec5667b..44bdce4242a 100644 --- a/drivers/video/aty/atyfb_base.c +++ b/drivers/video/aty/atyfb_base.c | |||
@@ -3458,9 +3458,10 @@ static int __devinit atyfb_setup_generic(struct pci_dev *pdev, | |||
3458 | 3458 | ||
3459 | raddr = addr + 0x7ff000UL; | 3459 | raddr = addr + 0x7ff000UL; |
3460 | rrp = &pdev->resource[2]; | 3460 | rrp = &pdev->resource[2]; |
3461 | if ((rrp->flags & IORESOURCE_MEM) && request_mem_region(rrp->start, rrp->end - rrp->start + 1, "atyfb")) { | 3461 | if ((rrp->flags & IORESOURCE_MEM) && |
3462 | request_mem_region(rrp->start, resource_size(rrp), "atyfb")) { | ||
3462 | par->aux_start = rrp->start; | 3463 | par->aux_start = rrp->start; |
3463 | par->aux_size = rrp->end - rrp->start + 1; | 3464 | par->aux_size = resource_size(rrp); |
3464 | raddr = rrp->start; | 3465 | raddr = rrp->start; |
3465 | PRINTKI("using auxiliary register aperture\n"); | 3466 | PRINTKI("using auxiliary register aperture\n"); |
3466 | } | 3467 | } |
@@ -3550,7 +3551,7 @@ static int __devinit atyfb_pci_probe(struct pci_dev *pdev, | |||
3550 | 3551 | ||
3551 | /* Reserve space */ | 3552 | /* Reserve space */ |
3552 | res_start = rp->start; | 3553 | res_start = rp->start; |
3553 | res_size = rp->end - rp->start + 1; | 3554 | res_size = resource_size(rp); |
3554 | if (!request_mem_region(res_start, res_size, "atyfb")) | 3555 | if (!request_mem_region(res_start, res_size, "atyfb")) |
3555 | return -EBUSY; | 3556 | return -EBUSY; |
3556 | 3557 | ||
diff --git a/drivers/video/au1100fb.c b/drivers/video/au1100fb.c index 34b2fc472fe..01a8fde67f2 100644 --- a/drivers/video/au1100fb.c +++ b/drivers/video/au1100fb.c | |||
@@ -486,7 +486,7 @@ static int __devinit au1100fb_drv_probe(struct platform_device *dev) | |||
486 | } | 486 | } |
487 | 487 | ||
488 | au1100fb_fix.mmio_start = regs_res->start; | 488 | au1100fb_fix.mmio_start = regs_res->start; |
489 | au1100fb_fix.mmio_len = regs_res->end - regs_res->start + 1; | 489 | au1100fb_fix.mmio_len = resource_size(regs_res); |
490 | 490 | ||
491 | if (!request_mem_region(au1100fb_fix.mmio_start, au1100fb_fix.mmio_len, | 491 | if (!request_mem_region(au1100fb_fix.mmio_start, au1100fb_fix.mmio_len, |
492 | DRIVER_NAME)) { | 492 | DRIVER_NAME)) { |
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; |
diff --git a/drivers/video/controlfb.c b/drivers/video/controlfb.c index c225dcce89e..9075bea5587 100644 --- a/drivers/video/controlfb.c +++ b/drivers/video/controlfb.c | |||
@@ -709,11 +709,11 @@ static int __init control_of_init(struct device_node *dp) | |||
709 | 709 | ||
710 | /* Map in frame buffer and registers */ | 710 | /* Map in frame buffer and registers */ |
711 | p->fb_orig_base = fb_res.start; | 711 | p->fb_orig_base = fb_res.start; |
712 | p->fb_orig_size = fb_res.end - fb_res.start + 1; | 712 | p->fb_orig_size = resource_size(&fb_res); |
713 | /* use the big-endian aperture (??) */ | 713 | /* use the big-endian aperture (??) */ |
714 | p->frame_buffer_phys = fb_res.start + 0x800000; | 714 | p->frame_buffer_phys = fb_res.start + 0x800000; |
715 | p->control_regs_phys = reg_res.start; | 715 | p->control_regs_phys = reg_res.start; |
716 | p->control_regs_size = reg_res.end - reg_res.start + 1; | 716 | p->control_regs_size = resource_size(®_res); |
717 | 717 | ||
718 | if (!p->fb_orig_base || | 718 | if (!p->fb_orig_base || |
719 | !request_mem_region(p->fb_orig_base,p->fb_orig_size,"controlfb")) { | 719 | !request_mem_region(p->fb_orig_base,p->fb_orig_size,"controlfb")) { |
diff --git a/drivers/video/ep93xx-fb.c b/drivers/video/ep93xx-fb.c index cbdb1bd77c2..40e5f17d1e4 100644 --- a/drivers/video/ep93xx-fb.c +++ b/drivers/video/ep93xx-fb.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * Framebuffer support for the EP93xx series. | 4 | * Framebuffer support for the EP93xx series. |
5 | * | 5 | * |
6 | * Copyright (C) 2007 Bluewater Systems Ltd | 6 | * Copyright (C) 2007 Bluewater Systems Ltd |
7 | * Author: Ryan Mallon <ryan@bluewatersys.com> | 7 | * Author: Ryan Mallon |
8 | * | 8 | * |
9 | * Copyright (c) 2009 H Hartley Sweeten <hsweeten@visionengravers.com> | 9 | * Copyright (c) 2009 H Hartley Sweeten <hsweeten@visionengravers.com> |
10 | * | 10 | * |
@@ -644,6 +644,6 @@ module_exit(ep93xxfb_exit); | |||
644 | 644 | ||
645 | MODULE_DESCRIPTION("EP93XX Framebuffer Driver"); | 645 | MODULE_DESCRIPTION("EP93XX Framebuffer Driver"); |
646 | MODULE_ALIAS("platform:ep93xx-fb"); | 646 | MODULE_ALIAS("platform:ep93xx-fb"); |
647 | MODULE_AUTHOR("Ryan Mallon <ryan&bluewatersys.com>, " | 647 | MODULE_AUTHOR("Ryan Mallon, " |
648 | "H Hartley Sweeten <hsweeten@visionengravers.com"); | 648 | "H Hartley Sweeten <hsweeten@visionengravers.com"); |
649 | MODULE_LICENSE("GPL"); | 649 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/video/i810/i810.h b/drivers/video/i810/i810.h index f37de60ecc5..1414b73ac55 100644 --- a/drivers/video/i810/i810.h +++ b/drivers/video/i810/i810.h | |||
@@ -137,7 +137,7 @@ | |||
137 | #define DRAM_ON 0x08 | 137 | #define DRAM_ON 0x08 |
138 | #define DRAM_OFF 0xE7 | 138 | #define DRAM_OFF 0xE7 |
139 | #define PG_ENABLE_MASK 0x01 | 139 | #define PG_ENABLE_MASK 0x01 |
140 | #define RING_SIZE_MASK (RINGBUFFER_SIZE - 1); | 140 | #define RING_SIZE_MASK (RINGBUFFER_SIZE - 1) |
141 | 141 | ||
142 | /* defines for restoring registers partially */ | 142 | /* defines for restoring registers partially */ |
143 | #define ADDR_MAP_MASK (0x07 << 5) | 143 | #define ADDR_MAP_MASK (0x07 << 5) |
diff --git a/drivers/video/mb862xx/mb862xxfbdrv.c b/drivers/video/mb862xx/mb862xxfbdrv.c index f70bd63b018..ee1de3e26de 100644 --- a/drivers/video/mb862xx/mb862xxfbdrv.c +++ b/drivers/video/mb862xx/mb862xxfbdrv.c | |||
@@ -697,7 +697,7 @@ static int __devinit of_platform_mb862xx_probe(struct platform_device *ofdev) | |||
697 | goto fbrel; | 697 | goto fbrel; |
698 | } | 698 | } |
699 | 699 | ||
700 | res_size = 1 + res.end - res.start; | 700 | res_size = resource_size(&res); |
701 | par->res = request_mem_region(res.start, res_size, DRV_NAME); | 701 | par->res = request_mem_region(res.start, res_size, DRV_NAME); |
702 | if (par->res == NULL) { | 702 | if (par->res == NULL) { |
703 | dev_err(dev, "Cannot claim framebuffer/mmio\n"); | 703 | dev_err(dev, "Cannot claim framebuffer/mmio\n"); |
@@ -787,7 +787,7 @@ static int __devexit of_platform_mb862xx_remove(struct platform_device *ofdev) | |||
787 | { | 787 | { |
788 | struct fb_info *fbi = dev_get_drvdata(&ofdev->dev); | 788 | struct fb_info *fbi = dev_get_drvdata(&ofdev->dev); |
789 | struct mb862xxfb_par *par = fbi->par; | 789 | struct mb862xxfb_par *par = fbi->par; |
790 | resource_size_t res_size = 1 + par->res->end - par->res->start; | 790 | resource_size_t res_size = resource_size(par->res); |
791 | unsigned long reg; | 791 | unsigned long reg; |
792 | 792 | ||
793 | dev_dbg(fbi->dev, "%s release\n", fbi->fix.id); | 793 | dev_dbg(fbi->dev, "%s release\n", fbi->fix.id); |
diff --git a/drivers/video/msm/mdp.c b/drivers/video/msm/mdp.c index c3636d55a3c..243d16f09b8 100644 --- a/drivers/video/msm/mdp.c +++ b/drivers/video/msm/mdp.c | |||
@@ -406,8 +406,7 @@ int mdp_probe(struct platform_device *pdev) | |||
406 | goto error_get_irq; | 406 | goto error_get_irq; |
407 | } | 407 | } |
408 | 408 | ||
409 | mdp->base = ioremap(resource->start, | 409 | mdp->base = ioremap(resource->start, resource_size(resource)); |
410 | resource->end - resource->start); | ||
411 | if (mdp->base == 0) { | 410 | if (mdp->base == 0) { |
412 | printk(KERN_ERR "msmfb: cannot allocate mdp regs!\n"); | 411 | printk(KERN_ERR "msmfb: cannot allocate mdp regs!\n"); |
413 | ret = -ENOMEM; | 412 | ret = -ENOMEM; |
diff --git a/drivers/video/msm/msm_fb.c b/drivers/video/msm/msm_fb.c index ec351309e60..c6e3b4fcdd6 100644 --- a/drivers/video/msm/msm_fb.c +++ b/drivers/video/msm/msm_fb.c | |||
@@ -525,10 +525,9 @@ static int setup_fbmem(struct msmfb_info *msmfb, struct platform_device *pdev) | |||
525 | return -ENOMEM; | 525 | return -ENOMEM; |
526 | } | 526 | } |
527 | fb->fix.smem_start = resource->start; | 527 | fb->fix.smem_start = resource->start; |
528 | fb->fix.smem_len = resource->end - resource->start; | 528 | fb->fix.smem_len = resource_size(resource); |
529 | fbram = ioremap(resource->start, | 529 | fbram = ioremap(resource->start, resource_size(resource)); |
530 | resource->end - resource->start); | 530 | if (fbram == NULL) { |
531 | if (fbram == 0) { | ||
532 | printk(KERN_ERR "msmfb: cannot allocate fbram!\n"); | 531 | printk(KERN_ERR "msmfb: cannot allocate fbram!\n"); |
533 | return -ENOMEM; | 532 | return -ENOMEM; |
534 | } | 533 | } |
diff --git a/drivers/video/nuc900fb.c b/drivers/video/nuc900fb.c index f838d9e277f..0fff59782e4 100644 --- a/drivers/video/nuc900fb.c +++ b/drivers/video/nuc900fb.c | |||
@@ -551,7 +551,7 @@ static int __devinit nuc900fb_probe(struct platform_device *pdev) | |||
551 | 551 | ||
552 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 552 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
553 | 553 | ||
554 | size = (res->end - res->start) + 1; | 554 | size = resource_size(res); |
555 | fbi->mem = request_mem_region(res->start, size, pdev->name); | 555 | fbi->mem = request_mem_region(res->start, size, pdev->name); |
556 | if (fbi->mem == NULL) { | 556 | if (fbi->mem == NULL) { |
557 | dev_err(&pdev->dev, "failed to alloc memory region\n"); | 557 | dev_err(&pdev->dev, "failed to alloc memory region\n"); |
diff --git a/drivers/video/platinumfb.c b/drivers/video/platinumfb.c index ef532d9d3c9..f27ae16ead2 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 | ||
diff --git a/drivers/video/pxa168fb.c b/drivers/video/pxa168fb.c index bb95ec56d25..18ead6f0184 100644 --- a/drivers/video/pxa168fb.c +++ b/drivers/video/pxa168fb.c | |||
@@ -662,7 +662,7 @@ static int __devinit pxa168fb_probe(struct platform_device *pdev) | |||
662 | info->fix.ypanstep = 0; | 662 | info->fix.ypanstep = 0; |
663 | info->fix.ywrapstep = 0; | 663 | info->fix.ywrapstep = 0; |
664 | info->fix.mmio_start = res->start; | 664 | info->fix.mmio_start = res->start; |
665 | info->fix.mmio_len = res->end - res->start + 1; | 665 | info->fix.mmio_len = resource_size(res); |
666 | info->fix.accel = FB_ACCEL_NONE; | 666 | info->fix.accel = FB_ACCEL_NONE; |
667 | info->fbops = &pxa168fb_ops; | 667 | info->fbops = &pxa168fb_ops; |
668 | info->pseudo_palette = fbi->pseudo_palette; | 668 | info->pseudo_palette = fbi->pseudo_palette; |
diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c index 816a4fda04f..087fc9960bb 100644 --- a/drivers/video/udlfb.c +++ b/drivers/video/udlfb.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | #include <linux/prefetch.h> | 30 | #include <linux/prefetch.h> |
31 | #include <linux/delay.h> | 31 | #include <linux/delay.h> |
32 | #include <linux/prefetch.h> | ||
33 | #include <video/udlfb.h> | 32 | #include <video/udlfb.h> |
34 | #include "edid.h" | 33 | #include "edid.h" |
35 | 34 | ||
diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c index cf43c80d27f..53aa4430d86 100644 --- a/drivers/video/via/viafbdev.c +++ b/drivers/video/via/viafbdev.c | |||
@@ -2016,7 +2016,7 @@ static int __init viafb_setup(void) | |||
2016 | int __init viafb_init(void) | 2016 | int __init viafb_init(void) |
2017 | { | 2017 | { |
2018 | u32 dummy_x, dummy_y; | 2018 | u32 dummy_x, dummy_y; |
2019 | int r; | 2019 | int r = 0; |
2020 | 2020 | ||
2021 | if (machine_is_olpc()) | 2021 | if (machine_is_olpc()) |
2022 | /* Apply XO-1.5-specific configuration. */ | 2022 | /* Apply XO-1.5-specific configuration. */ |
@@ -2039,7 +2039,7 @@ int __init viafb_init(void) | |||
2039 | printk(KERN_INFO | 2039 | printk(KERN_INFO |
2040 | "VIA Graphics Integration Chipset framebuffer %d.%d initializing\n", | 2040 | "VIA Graphics Integration Chipset framebuffer %d.%d initializing\n", |
2041 | VERSION_MAJOR, VERSION_MINOR); | 2041 | VERSION_MAJOR, VERSION_MINOR); |
2042 | return 0; | 2042 | return r; |
2043 | } | 2043 | } |
2044 | 2044 | ||
2045 | void __exit viafb_exit(void) | 2045 | void __exit viafb_exit(void) |