diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2021-03-16 22:08:56 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2021-03-16 22:08:56 +0000 |
commit | 530382c2e1a8d8e19f6568bdc52b81999ff2e7a2 (patch) | |
tree | 3686be8e6688063270cc0d48235a115b587e1863 /sys/arch/armv7/stand | |
parent | 9fb4ee91776c6f44b225daa0cb6ff994326bdf9e (diff) |
Node without a "status" property should be considered enabled as well.
Same change made to arm64 a week ago.
Diffstat (limited to 'sys/arch/armv7/stand')
-rw-r--r-- | sys/arch/armv7/stand/efiboot/efiboot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/armv7/stand/efiboot/efiboot.c b/sys/arch/armv7/stand/efiboot/efiboot.c index 71d3db1e945..04f791b2d4d 100644 --- a/sys/arch/armv7/stand/efiboot/efiboot.c +++ b/sys/arch/armv7/stand/efiboot/efiboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: efiboot.c,v 1.32 2021/03/16 22:02:27 kettenis Exp $ */ +/* $OpenBSD: efiboot.c,v 1.33 2021/03/16 22:08:55 kettenis Exp $ */ /* * Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net> @@ -352,7 +352,7 @@ efi_framebuffer(void) child = fdt_next_node(child)) { if (!fdt_node_is_compatible(child, "simple-framebuffer")) continue; - if (fdt_node_property(child, "status", &prop) && + if (!fdt_node_property(child, "status", &prop) || strcmp(prop, "okay") == 0) { strlcpy(framebuffer_path, "/chosen/", sizeof(framebuffer_path)); @@ -366,7 +366,7 @@ efi_framebuffer(void) child = fdt_next_node(child)) { if (!fdt_node_is_compatible(child, "simple-framebuffer")) continue; - if (fdt_node_property(child, "status", &prop) && + if (!fdt_node_property(child, "status", &prop) || strcmp(prop, "okay") == 0) { strlcpy(framebuffer_path, "/", sizeof(framebuffer_path)); |