diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2007-03-22 19:31:08 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-12 13:55:14 -0400 |
commit | e51b85dcf56c87772b47a0781e6cfa88848b50b8 (patch) | |
tree | 268a4aa62fe125c2eba56a625e1446f6cb5caf36 /drivers/macintosh/via-pmu-led.c | |
parent | c3b9d9ab96becbd901bd31db0ea8174fcc02e83f (diff) |
[POWERPC] PMU LED whitelisting of PowerMac 7,2 and 7,3
This allows the PMU LED on both a PowerMac 7,2 (Dual G5 2.0GHz, June 2003)
and a PowerMac 7,3 (Dual G5 2.0GHz, June 2004) to be controlled.
The physical LED is never off, unlike an iBook/PowerBook LED.
It is rather dim ("off") or very bright ("on").
Signed-off-by: Tony Vroon <chainsaw@gentoo.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/macintosh/via-pmu-led.c')
-rw-r--r-- | drivers/macintosh/via-pmu-led.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/macintosh/via-pmu-led.c b/drivers/macintosh/via-pmu-led.c index ed8423f4605d..f8d7a460c9a8 100644 --- a/drivers/macintosh/via-pmu-led.c +++ b/drivers/macintosh/via-pmu-led.c | |||
@@ -122,7 +122,9 @@ static int __init via_pmu_led_init(void) | |||
122 | if (model == NULL) | 122 | if (model == NULL) |
123 | return -ENODEV; | 123 | return -ENODEV; |
124 | if (strncmp(model, "PowerBook", strlen("PowerBook")) != 0 && | 124 | if (strncmp(model, "PowerBook", strlen("PowerBook")) != 0 && |
125 | strncmp(model, "iBook", strlen("iBook")) != 0) { | 125 | strncmp(model, "iBook", strlen("iBook")) != 0 && |
126 | strcmp(model, "PowerMac7,2") != 0 && | ||
127 | strcmp(model, "PowerMac7,3") != 0) { | ||
126 | of_node_put(dt); | 128 | of_node_put(dt); |
127 | /* ignore */ | 129 | /* ignore */ |
128 | return -ENODEV; | 130 | return -ENODEV; |