Subject: [patch] cell: correctly detect systemsim host

From: Christian Krafft <[email-masked]>
Date: Thu, 13 Apr 2006 13:41:50 +0200

Systemsim uses a different compatible property in the device tree.

Signed-off-by: Christian Krafft <[email-masked]>
---

Index: linux/arch/powerpc/platforms/cell/setup.c
===================================================================
--- linux.orig/arch/powerpc/platforms/cell/setup.c
+++ linux/arch/powerpc/platforms/cell/setup.c
@@ -222,10 +222,13 @@ static int __init cell_probe(void)
  	 * more appropriate detection logic
  	 */
  	unsigned long root = of_get_flat_dt_root();
-	if (!of_flat_dt_is_compatible(root, "IBM,CPBW-1.0"))
-		return 0;
+	if (of_flat_dt_is_compatible(root, "IBM,CPBW-1.0"))
+		return 1;

-	return 1;
+	if (of_flat_dt_is_compatible(root, "IBM,CPBW-SystemSim"))
+		return 1;
+
+	return 0;
  }

  /*