summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2003-06-16 00:37:36 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2003-06-16 00:37:36 +0000
commiteff7b973e01ead6747847342096fe6732e08488a (patch)
treecc3198c3ead37ec501e4648dafeb29966d25faa7 /sys/arch
parentc11533dde95191c51dd7992bd94fb393f85683e6 (diff)
Check for the backlight control on the stdout_node (the LCD) rather than
possibly the parent, which does not have the backlight-control property. Fixes brightness control on 'dual' node OFW diplays.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/macppc/macppc/ofw_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/macppc/ofw_machdep.c b/sys/arch/macppc/macppc/ofw_machdep.c
index 233c97d7600..0e450cf34c7 100644
--- a/sys/arch/macppc/macppc/ofw_machdep.c
+++ b/sys/arch/macppc/macppc/ofw_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofw_machdep.c,v 1.17 2002/10/12 01:09:43 krw Exp $ */
+/* $OpenBSD: ofw_machdep.c,v 1.18 2003/06/16 00:37:35 drahn Exp $ */
/* $NetBSD: ofw_machdep.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */
/*
@@ -547,7 +547,7 @@ of_display_console()
panic(": no address");
}
}
- len = OF_getprop(display_node, "backlight-control",
+ len = OF_getprop(stdout_node, "backlight-control",
backlight_control, sizeof(backlight_control));
if (len > 0)
cons_backlight_available = 1;