pmac_show_cpuinfo broken
Andreas Schwab
schwab at suse.de
Fri Oct 14 08:28:33 EST 2005
Apparently with the new device tree flattening the unflattened device tree
has lost the device-tree device, so that pmac_show_cpuinfo no longer shows
the model and compatible properties.
Signed-off-by: schwab at suse.de
--- linux-2.6.14-rc4/arch/ppc64/kernel/pmac_setup.c.~1~ 2005-10-11 20:05:47.000000000 +0200
+++ linux-2.6.14-rc4/arch/ppc64/kernel/pmac_setup.c 2005-10-13 23:26:11.000000000 +0200
@@ -115,7 +115,7 @@ static void __pmac pmac_show_cpuinfo(str
/* find motherboard type */
seq_printf(m, "machine\t\t: ");
- np = find_devices("device-tree");
+ np = find_path_device("/");
if (np != NULL) {
pp = (char *) get_property(np, "model", NULL);
if (pp != NULL)
Andreas.
--
Andreas Schwab, SuSE Labs, schwab at suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Linuxppc64-dev
mailing list