Commit f6b3df62 authored by Michael Ellerman's avatar Michael Ellerman Committed by Benjamin Herrenschmidt

powerpc/ps3: Replace virt_to_abs() with __pa()

virt_to_abs() is just a wrapper around __pa(), call __pa() directly.
Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent d88dc13a
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <linux/fb.h> #include <linux/fb.h>
#include <linux/init.h> #include <linux/init.h>
#include <asm/abs_addr.h>
#include <asm/cell-regs.h> #include <asm/cell-regs.h>
#include <asm/lv1call.h> #include <asm/lv1call.h>
#include <asm/ps3av.h> #include <asm/ps3av.h>
...@@ -1141,7 +1140,7 @@ static int __devinit ps3fb_probe(struct ps3_system_bus_device *dev) ...@@ -1141,7 +1140,7 @@ static int __devinit ps3fb_probe(struct ps3_system_bus_device *dev)
*/ */
fb_start = ps3fb_videomemory.address + GPU_FB_START; fb_start = ps3fb_videomemory.address + GPU_FB_START;
info->screen_base = (char __force __iomem *)fb_start; info->screen_base = (char __force __iomem *)fb_start;
info->fix.smem_start = virt_to_abs(fb_start); info->fix.smem_start = __pa(fb_start);
info->fix.smem_len = ps3fb_videomemory.size - GPU_FB_START; info->fix.smem_len = ps3fb_videomemory.size - GPU_FB_START;
info->pseudo_palette = par->pseudo_palette; info->pseudo_palette = par->pseudo_palette;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment