diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-03-01 21:39:28 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-03-01 21:39:28 +0000 |
commit | e2cf0a6f25972924c172f0e05ecd481deee727cf (patch) | |
tree | fa07fd301070c48d1a4c803662a211e4446996d5 /sys/arch | |
parent | dc9495d8a66e040101baf23b0c7b478ae9daf531 (diff) |
On the first generation iMac G5 (PowerMac8,1) the fans node is called
rpm-fans.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/macppc/dev/smu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/macppc/dev/smu.c b/sys/arch/macppc/dev/smu.c index 268d2148053..d8f4851d516 100644 --- a/sys/arch/macppc/dev/smu.c +++ b/sys/arch/macppc/dev/smu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smu.c,v 1.14 2007/03/01 20:54:33 kettenis Exp $ */ +/* $OpenBSD: smu.c,v 1.15 2007/03/01 21:39:27 kettenis Exp $ */ /* * Copyright (c) 2005 Mark Kettenis @@ -254,6 +254,8 @@ smu_attach(struct device *parent, struct device *self, void *aux) /* Fans */ node = OF_getnodebyname(ca->ca_node, "fans"); + if (node == 0) + node = OF_getnodebyname(ca->ca_node, "rpm-fans"); for (node = OF_child(node); node; node = OF_peer(node)) { if (OF_getprop(node, "reg", ®, sizeof reg) <= 0 || OF_getprop(node, "device_type", type, sizeof type) <= 0) |