aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi Kani <toshi.kani@hp.com>2015-06-04 12:55:17 -0400
committerIngo Molnar <mingo@kernel.org>2015-06-07 09:28:57 -0400
commitc7c95f19f37976731efca9576f6e4a22067798a2 (patch)
tree3fb0f44bd215ae80b8fe1f865e80bac425468820
parent556269c138a8b2d3f5714b8105fa6119ecc505f2 (diff)
video/fbdev, asm/io.h: Remove ioremap_writethrough()
Replace all calls to ioremap_writethrough() with ioremap_wt(). Remove ioremap_writethrough() too. Signed-off-by: Toshi Kani <toshi.kani@hp.com> Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Elliott@hp.com Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Luis R. Rodriguez <mcgrof@suse.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: arnd@arndb.de Cc: hch@lst.de Cc: hmh@hmh.eng.br Cc: jgross@suse.com Cc: konrad.wilk@oracle.com Cc: linux-mm <linux-mm@kvack.org> Cc: linux-nvdimm@lists.01.org Cc: stefan.bader@canonical.com Cc: yigal@plexistor.com Link: http://lkml.kernel.org/r/1433436928-31903-10-git-send-email-bp@alien8.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--arch/frv/include/asm/io.h5
-rw-r--r--arch/m68k/include/asm/io_mm.h5
-rw-r--r--arch/m68k/include/asm/io_no.h4
-rw-r--r--arch/microblaze/include/asm/io.h1
-rw-r--r--arch/tile/include/asm/io.h1
-rw-r--r--drivers/video/fbdev/amifb.c4
-rw-r--r--drivers/video/fbdev/atafb.c3
-rw-r--r--drivers/video/fbdev/hpfb.c4
8 files changed, 5 insertions, 22 deletions
diff --git a/arch/frv/include/asm/io.h b/arch/frv/include/asm/io.h
index 1fe98febc081..a31b63ec4930 100644
--- a/arch/frv/include/asm/io.h
+++ b/arch/frv/include/asm/io.h
@@ -267,11 +267,6 @@ static inline void __iomem *ioremap_nocache(unsigned long physaddr, unsigned lon
267 return __ioremap(physaddr, size, IOMAP_NOCACHE_SER); 267 return __ioremap(physaddr, size, IOMAP_NOCACHE_SER);
268} 268}
269 269
270static inline void __iomem *ioremap_writethrough(unsigned long physaddr, unsigned long size)
271{
272 return __ioremap(physaddr, size, IOMAP_WRITETHROUGH);
273}
274
275static inline void __iomem *ioremap_wt(unsigned long physaddr, unsigned long size) 270static inline void __iomem *ioremap_wt(unsigned long physaddr, unsigned long size)
276{ 271{
277 return __ioremap(physaddr, size, IOMAP_WRITETHROUGH); 272 return __ioremap(physaddr, size, IOMAP_WRITETHROUGH);
diff --git a/arch/m68k/include/asm/io_mm.h b/arch/m68k/include/asm/io_mm.h
index 7c12138bb3cb..618c85d3c786 100644
--- a/arch/m68k/include/asm/io_mm.h
+++ b/arch/m68k/include/asm/io_mm.h
@@ -467,11 +467,6 @@ static inline void __iomem *ioremap_nocache(unsigned long physaddr, unsigned lon
467{ 467{
468 return __ioremap(physaddr, size, IOMAP_NOCACHE_SER); 468 return __ioremap(physaddr, size, IOMAP_NOCACHE_SER);
469} 469}
470static inline void __iomem *ioremap_writethrough(unsigned long physaddr,
471 unsigned long size)
472{
473 return __ioremap(physaddr, size, IOMAP_WRITETHROUGH);
474}
475static inline void __iomem *ioremap_wt(unsigned long physaddr, 470static inline void __iomem *ioremap_wt(unsigned long physaddr,
476 unsigned long size) 471 unsigned long size)
477{ 472{
diff --git a/arch/m68k/include/asm/io_no.h b/arch/m68k/include/asm/io_no.h
index 5fff9a22296e..ad7bd40e6742 100644
--- a/arch/m68k/include/asm/io_no.h
+++ b/arch/m68k/include/asm/io_no.h
@@ -155,10 +155,6 @@ static inline void *ioremap_nocache(unsigned long physaddr, unsigned long size)
155{ 155{
156 return __ioremap(physaddr, size, IOMAP_NOCACHE_SER); 156 return __ioremap(physaddr, size, IOMAP_NOCACHE_SER);
157} 157}
158static inline void *ioremap_writethrough(unsigned long physaddr, unsigned long size)
159{
160 return __ioremap(physaddr, size, IOMAP_WRITETHROUGH);
161}
162static inline void *ioremap_wt(unsigned long physaddr, unsigned long size) 158static inline void *ioremap_wt(unsigned long physaddr, unsigned long size)
163{ 159{
164 return __ioremap(physaddr, size, IOMAP_WRITETHROUGH); 160 return __ioremap(physaddr, size, IOMAP_WRITETHROUGH);
diff --git a/arch/microblaze/include/asm/io.h b/arch/microblaze/include/asm/io.h
index ec3da1135994..39b6315db82e 100644
--- a/arch/microblaze/include/asm/io.h
+++ b/arch/microblaze/include/asm/io.h
@@ -39,7 +39,6 @@ extern resource_size_t isa_mem_base;
39extern void iounmap(void __iomem *addr); 39extern void iounmap(void __iomem *addr);
40 40
41extern void __iomem *ioremap(phys_addr_t address, unsigned long size); 41extern void __iomem *ioremap(phys_addr_t address, unsigned long size);
42#define ioremap_writethrough(addr, size) ioremap((addr), (size))
43#define ioremap_nocache(addr, size) ioremap((addr), (size)) 42#define ioremap_nocache(addr, size) ioremap((addr), (size))
44#define ioremap_fullcache(addr, size) ioremap((addr), (size)) 43#define ioremap_fullcache(addr, size) ioremap((addr), (size))
45#define ioremap_wc(addr, size) ioremap((addr), (size)) 44#define ioremap_wc(addr, size) ioremap((addr), (size))
diff --git a/arch/tile/include/asm/io.h b/arch/tile/include/asm/io.h
index 9c3d950a7231..dc61de15c1f9 100644
--- a/arch/tile/include/asm/io.h
+++ b/arch/tile/include/asm/io.h
@@ -55,7 +55,6 @@ extern void iounmap(volatile void __iomem *addr);
55#define ioremap_nocache(physaddr, size) ioremap(physaddr, size) 55#define ioremap_nocache(physaddr, size) ioremap(physaddr, size)
56#define ioremap_wc(physaddr, size) ioremap(physaddr, size) 56#define ioremap_wc(physaddr, size) ioremap(physaddr, size)
57#define ioremap_wt(physaddr, size) ioremap(physaddr, size) 57#define ioremap_wt(physaddr, size) ioremap(physaddr, size)
58#define ioremap_writethrough(physaddr, size) ioremap(physaddr, size)
59#define ioremap_fullcache(physaddr, size) ioremap(physaddr, size) 58#define ioremap_fullcache(physaddr, size) ioremap(physaddr, size)
60 59
61#define mmiowb() 60#define mmiowb()
diff --git a/drivers/video/fbdev/amifb.c b/drivers/video/fbdev/amifb.c
index 35f7900a0573..ee3a703acf23 100644
--- a/drivers/video/fbdev/amifb.c
+++ b/drivers/video/fbdev/amifb.c
@@ -3705,8 +3705,8 @@ default_chipset:
3705 * access the videomem with writethrough cache 3705 * access the videomem with writethrough cache
3706 */ 3706 */
3707 info->fix.smem_start = (u_long)ZTWO_PADDR(videomemory); 3707 info->fix.smem_start = (u_long)ZTWO_PADDR(videomemory);
3708 videomemory = (u_long)ioremap_writethrough(info->fix.smem_start, 3708 videomemory = (u_long)ioremap_wt(info->fix.smem_start,
3709 info->fix.smem_len); 3709 info->fix.smem_len);
3710 if (!videomemory) { 3710 if (!videomemory) {
3711 dev_warn(&pdev->dev, 3711 dev_warn(&pdev->dev,
3712 "Unable to map videomem cached writethrough\n"); 3712 "Unable to map videomem cached writethrough\n");
diff --git a/drivers/video/fbdev/atafb.c b/drivers/video/fbdev/atafb.c
index cb9ee2556850..d6ce613e12ad 100644
--- a/drivers/video/fbdev/atafb.c
+++ b/drivers/video/fbdev/atafb.c
@@ -3185,8 +3185,7 @@ int __init atafb_init(void)
3185 /* Map the video memory (physical address given) to somewhere 3185 /* Map the video memory (physical address given) to somewhere
3186 * in the kernel address space. 3186 * in the kernel address space.
3187 */ 3187 */
3188 external_screen_base = ioremap_writethrough(external_addr, 3188 external_screen_base = ioremap_wt(external_addr, external_len);
3189 external_len);
3190 if (external_vgaiobase) 3189 if (external_vgaiobase)
3191 external_vgaiobase = 3190 external_vgaiobase =
3192 (unsigned long)ioremap(external_vgaiobase, 0x10000); 3191 (unsigned long)ioremap(external_vgaiobase, 0x10000);
diff --git a/drivers/video/fbdev/hpfb.c b/drivers/video/fbdev/hpfb.c
index a1b7e5fa9b09..9476d196f510 100644
--- a/drivers/video/fbdev/hpfb.c
+++ b/drivers/video/fbdev/hpfb.c
@@ -241,8 +241,8 @@ static int hpfb_init_one(unsigned long phys_base, unsigned long virt_base)
241 fb_info.fix.line_length = fb_width; 241 fb_info.fix.line_length = fb_width;
242 fb_height = (in_8(fb_regs + HPFB_FBHMSB) << 8) | in_8(fb_regs + HPFB_FBHLSB); 242 fb_height = (in_8(fb_regs + HPFB_FBHMSB) << 8) | in_8(fb_regs + HPFB_FBHLSB);
243 fb_info.fix.smem_len = fb_width * fb_height; 243 fb_info.fix.smem_len = fb_width * fb_height;
244 fb_start = (unsigned long)ioremap_writethrough(fb_info.fix.smem_start, 244 fb_start = (unsigned long)ioremap_wt(fb_info.fix.smem_start,
245 fb_info.fix.smem_len); 245 fb_info.fix.smem_len);
246 hpfb_defined.xres = (in_8(fb_regs + HPFB_DWMSB) << 8) | in_8(fb_regs + HPFB_DWLSB); 246 hpfb_defined.xres = (in_8(fb_regs + HPFB_DWMSB) << 8) | in_8(fb_regs + HPFB_DWLSB);
247 hpfb_defined.yres = (in_8(fb_regs + HPFB_DHMSB) << 8) | in_8(fb_regs + HPFB_DHLSB); 247 hpfb_defined.yres = (in_8(fb_regs + HPFB_DHMSB) << 8) | in_8(fb_regs + HPFB_DHLSB);
248 hpfb_defined.xres_virtual = hpfb_defined.xres; 248 hpfb_defined.xres_virtual = hpfb_defined.xres;