Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e51b85dc authored by Tony Vroon's avatar Tony Vroon Committed by Paul Mackerras
Browse files

[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: default avatarTony Vroon <chainsaw@gentoo.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent c3b9d9ab
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -122,7 +122,9 @@ static int __init via_pmu_led_init(void)
	if (model == NULL)
	if (model == NULL)
		return -ENODEV;
		return -ENODEV;
	if (strncmp(model, "PowerBook", strlen("PowerBook")) != 0 &&
	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);
		of_node_put(dt);
		/* ignore */
		/* ignore */
		return -ENODEV;
		return -ENODEV;