diff options
author | 2007-03-01 21:39:27 +0000 | |
---|---|---|
committer | 2007-03-01 21:39:27 +0000 | |
commit | ded34fa7e7d1aadfc54b646bad864e87eb635a31 (patch) | |
tree | 647d1e3f708a8f34feb27fabd6c60d4290ec43de | |
parent | If the kauai is not found in openfirmware, abort the config. ok deraadt (diff) | |
download | wireguard-openbsd-ded34fa7e7d1aadfc54b646bad864e87eb635a31.tar.xz wireguard-openbsd-ded34fa7e7d1aadfc54b646bad864e87eb635a31.zip |
On the first generation iMac G5 (PowerMac8,1) the fans node is called
rpm-fans.
-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) |