patch-2.4.0-test9 linux/arch/ppc/kernel/pmac_backlight.c

Next file: linux/arch/ppc/kernel/pmac_nvram.c
Previous file: linux/arch/ppc/kernel/pci.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test8/linux/arch/ppc/kernel/pmac_backlight.c linux/arch/ppc/kernel/pmac_backlight.c
@@ -41,16 +41,16 @@
 	
 #ifdef CONFIG_ADB_PMU
 	/* Special case for the old PowerBook since I can't test on it */
-	if ((machine_is_compatible("AAPL,3400/2400") || machine_is_compatible("AAPL,3500")
-		|| machine_is_compatible("AAPL,PowerBook1998")
-		|| machine_is_compatible("AAPL,PowerBook1999"))
-		&& !strcmp(type, "pmu"))
+	backlight_autosave = machine_is_compatible("AAPL,3400/2400")
+		|| machine_is_compatible("AAPL,3500");
+	if ((backlight_autosave
+	     || machine_is_compatible("AAPL,PowerBook1998")
+	     || machine_is_compatible("PowerBook1,1"))
+	    && !strcmp(type, "pmu"))
 		valid = 1;
-	else
 #endif
-	{
-		if (bk_node)
-			prop = get_property(bk_node, "backlight-control", NULL);
+	if (bk_node) {
+		prop = get_property(bk_node, "backlight-control", NULL);
 		if (prop && !strncmp(prop, type, strlen(type)))
 			valid = 1;
 	}
@@ -70,8 +70,6 @@
 	}
 	
 #ifdef CONFIG_ADB_PMU
-	backlight_autosave = machine_is_compatible("AAPL,3400/2400")
-		|| machine_is_compatible("AAPL,3500");
 	if (backlight_autosave) {
 		struct adb_request req;
 		pmu_request(&req, NULL, 2, 0xd9, 0);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)