[OpenBIOS] [PATCH] ppc: Fix is_apple() for PReP
Andreas Färber
andreas.faerber at web.de
Sun Feb 24 22:02:42 CET 2013
It was returning true for ARCH_PREP although not an Apple device.
Limit it to Old World and New World Macs.
Signed-off-by: Andreas Färber <andreas.faerber at web.de>
---
arch/ppc/qemu/init.c | 2 +-
1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(-)
diff --git a/arch/ppc/qemu/init.c b/arch/ppc/qemu/init.c
index a8fc320..8efbeeb 100644
--- a/arch/ppc/qemu/init.c
+++ b/arch/ppc/qemu/init.c
@@ -76,7 +76,7 @@ enum {
int is_apple(void)
{
- return 1;
+ return is_oldworld() || is_newworld();
}
int is_oldworld(void)
--
1.7.10.4
More information about the OpenBIOS
mailing list