Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/32: Remove wii_memory_fixups()

wii_memory_fixups() is not called anymore, remove it.

Also remove left-overs in mmu_decl.h which were forgotten by
commit 160985f3025b ("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

authored by

Christophe Leroy and committed by
Michael Ellerman
0115953d b0e0d68b

-23
-8
arch/powerpc/mm/mmu_decl.h
··· 102 102 extern phys_addr_t memstart_addr; 103 103 extern phys_addr_t lowmem_end_addr; 104 104 105 - #ifdef CONFIG_WII 106 - extern unsigned long wii_hole_start; 107 - extern unsigned long wii_hole_size; 108 - 109 - extern unsigned long wii_mmu_mapin_mem2(unsigned long top); 110 - extern void wii_memory_fixups(void); 111 - #endif 112 - 113 105 /* ...and now those things that may be slightly different between processor 114 106 * architectures. -- Dan 115 107 */
-15
arch/powerpc/platforms/embedded6xx/wii.c
··· 15 15 #include <linux/seq_file.h> 16 16 #include <linux/of_address.h> 17 17 #include <linux/of_platform.h> 18 - #include <linux/memblock.h> 19 - #include <mm/mmu_decl.h> 20 18 21 19 #include <asm/io.h> 22 20 #include <asm/machdep.h> ··· 46 48 47 49 static void __iomem *hw_ctrl; 48 50 static void __iomem *hw_gpio; 49 - 50 - static int __init page_aligned(unsigned long x) 51 - { 52 - return !(x & (PAGE_SIZE-1)); 53 - } 54 - 55 - void __init wii_memory_fixups(void) 56 - { 57 - struct memblock_region *p = memblock.memory.regions; 58 - 59 - BUG_ON(memblock.memory.cnt != 2); 60 - BUG_ON(!page_aligned(p[0].base) || !page_aligned(p[1].base)); 61 - } 62 51 63 52 static void __noreturn wii_spin(void) 64 53 {