summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authoranton <anton@cvs.openbsd.org>2017-07-22 18:33:39 +0000
committeranton <anton@cvs.openbsd.org>2017-07-22 18:33:39 +0000
commitcd9ba2f11d27ae56edd766d7f7f5565e271be5a3 (patch)
tree48f60ddd60a4db8218bbad9f63d7f0dec941716d /sys
parent7d9fba71442eb742c6318960049db385fa766b75 (diff)
Initialize the brightness to a valid value if found.
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/macppc/macppc/ofw_machdep.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/macppc/macppc/ofw_machdep.c b/sys/arch/macppc/macppc/ofw_machdep.c
index 0b7b1de829e..e36ec542159 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.55 2015/07/21 05:58:34 jsg Exp $ */
+/* $OpenBSD: ofw_machdep.c,v 1.56 2017/07/22 18:33:38 anton Exp $ */
/* $NetBSD: ofw_machdep.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */
/*
@@ -469,8 +469,10 @@ of_display_console(void)
}
}
- if (OF_getnodebyname(0, "backlight") != 0)
+ if (OF_getnodebyname(0, "backlight") != 0) {
cons_backlight_available = 1;
+ cons_brightness = MAX_BRIGHTNESS;
+ }
#if 1
printf(": memaddr %x, size %x ", addr[0].phys_lo, addr[0].size_lo);