Skip to content

Commit

Permalink
[POWERPC] PMU LED whitelisting of PowerMac 7,2 and 7,3
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
  • Loading branch information
tonyvroon authored and paulusmack committed Apr 12, 2007
1 parent c3b9d9a commit e51b85d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/macintosh/via-pmu-led.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ static int __init via_pmu_led_init(void)
if (model == NULL)
return -ENODEV;
if (strncmp(model, "PowerBook", strlen("PowerBook")) != 0 &&
strncmp(model, "iBook", strlen("iBook")) != 0) {
strncmp(model, "iBook", strlen("iBook")) != 0 &&
strcmp(model, "PowerMac7,2") != 0 &&
strcmp(model, "PowerMac7,3") != 0) {
of_node_put(dt);
/* ignore */
return -ENODEV;
Expand Down

0 comments on commit e51b85d

Please sign in to comment.