From e2cf0a6f25972924c172f0e05ecd481deee727cf Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 1 Mar 2007 21:39:28 +0000 Subject: On the first generation iMac G5 (PowerMac8,1) the fans node is called rpm-fans. --- sys/arch/macppc/dev/smu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch/macppc/dev') 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) -- cgit v1.2.3