]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/32: Remove wii_memory_fixups()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 31 Aug 2022 09:32:09 +0000 (11:32 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 1 Sep 2022 03:56:07 +0000 (13:56 +1000)
wii_memory_fixups() is not called anymore, remove it.

Also remove left-overs in mmu_decl.h which were forgotten by
commit 5c428d4ec822 ("powerpc/wii: remove wii_mmu_mapin_mem2()")

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/5f2091f86528b59ef92ef1daed5d3dd8c0d7bebd.1661938317.git.christophe.leroy@csgroup.eu
arch/powerpc/mm/mmu_decl.h
arch/powerpc/platforms/embedded6xx/wii.c

index 6dd4744cc56abec496005ff69d1c5d024640733a..0e3528aec49ee86796b4a63252ef1d6760bedc92 100644 (file)
@@ -102,14 +102,6 @@ extern phys_addr_t total_lowmem;
 extern phys_addr_t memstart_addr;
 extern phys_addr_t lowmem_end_addr;
 
-#ifdef CONFIG_WII
-extern unsigned long wii_hole_start;
-extern unsigned long wii_hole_size;
-
-extern unsigned long wii_mmu_mapin_mem2(unsigned long top);
-extern void wii_memory_fixups(void);
-#endif
-
 /* ...and now those things that may be slightly different between processor
  * architectures.  -- Dan
  */
index 9e03ff8f631c4f14d929c37149acbe306d99fb4a..f4e654a9d4ff6d79f4216ccb09fc3e0a6dce909d 100644 (file)
@@ -15,8 +15,6 @@
 #include <linux/seq_file.h>
 #include <linux/of_address.h>
 #include <linux/of_platform.h>
-#include <linux/memblock.h>
-#include <mm/mmu_decl.h>
 
 #include <asm/io.h>
 #include <asm/machdep.h>
 static void __iomem *hw_ctrl;
 static void __iomem *hw_gpio;
 
-static int __init page_aligned(unsigned long x)
-{
-       return !(x & (PAGE_SIZE-1));
-}
-
-void __init wii_memory_fixups(void)
-{
-       struct memblock_region *p = memblock.memory.regions;
-
-       BUG_ON(memblock.memory.cnt != 2);
-       BUG_ON(!page_aligned(p[0].base) || !page_aligned(p[1].base));
-}
-
 static void __noreturn wii_spin(void)
 {
        local_irq_disable();