Skip to contentSkip to conversation

pasemi: Add fixup_device_tree function to prom_init

PATCH New Darren Stevens 1 participant 1 message Jul 17, 2016 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pasemi: Add fixup_device_tree function to prom_init

Add a pasmei platform specific entry in the fixup_device_tree() call in prom_init.c.

This call will be used to fix the broken device tree passed by CFE on AmigaOneX1000 machines.

---

arch/powerpc/kernel/prom_init.c +8 -0
index 6ee4b72..287ce4b 100644
@@ -2639,6 +2639,13 @@ static void __init fixup_device_tree_efika(void)
 #else
 #define fixup_device_tree_efika()
 #endif
+#ifdef CONFIG_PPC_PASEMI
+static void __init fixup_device_tree_pasemi(void)
+{
+}
+#else
+#define fixup_device_tree_pasemi()
+#endif
 
 static void __init fixup_device_tree(void)
 {
@@ -2647,6 +2654,7 @@ static void __init fixup_device_tree(void)
 	fixup_device_tree_chrp();
 	fixup_device_tree_pmac();
 	fixup_device_tree_efika();
+	fixup_device_tree_pasemi();
 }
 
 static void __init prom_find_boot_cpu(void)