Kernel - Fix compilation on x86_64 and armv7 (for MM changes)
[tpg/acess2.git] / KernelLand / Modules / Display / PL110 / main.c
index 5f22546..094af70 100644 (file)
@@ -308,11 +308,11 @@ int PL110_int_SetResolution(int W, int H)
        gpPL110_IOMem->LCDTiming3 = 0;\r
 \r
        if( gpPL110_Framebuffer ) {\r
-               MM_UnmapHWPages((tVAddr)gpPL110_Framebuffer, (giPL110_FramebufferSize+0xFFF)>>12);\r
+               MM_UnmapHWPages(gpPL110_Framebuffer, (giPL110_FramebufferSize+0xFFF)>>12);\r
        }\r
        giPL110_FramebufferSize = W*H*4;\r
 \r
-       gpPL110_Framebuffer = (void*)MM_AllocDMA( (giPL110_FramebufferSize+0xFFF)>>12, 32, &gPL110_FramebufferPhys );\r
+       gpPL110_Framebuffer = MM_AllocDMA( (giPL110_FramebufferSize+0xFFF)>>12, 32, &gPL110_FramebufferPhys );\r
        gpPL110_IOMem->LCDUPBase = gPL110_FramebufferPhys;\r
        gpPL110_IOMem->LCDLPBase = 0;\r
 \r

UCC git Repository :: git.ucc.asn.au