summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/drm_linux.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2019-07-15 01:05:01 +0000
committerjsg <jsg@openbsd.org>2019-07-15 01:05:01 +0000
commit7ef4208b4dccf98973797e521ad11d2447edc513 (patch)
tree881fae4e448c46bb6c39ff6a3d26edaa4bc91b00 /sys/dev/pci/drm/drm_linux.c
parentReplace local method of determining rasops rotation with (diff)
downloadwireguard-openbsd-7ef4208b4dccf98973797e521ad11d2447edc513.tar.xz
wireguard-openbsd-7ef4208b4dccf98973797e521ad11d2447edc513.zip
put smbios date access under NBIOS > 0 instead of CONFIG_DMI
Diffstat (limited to 'sys/dev/pci/drm/drm_linux.c')
-rw-r--r--sys/dev/pci/drm/drm_linux.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/drm_linux.c b/sys/dev/pci/drm/drm_linux.c
index b6fa9799da9..641d21efd0d 100644
--- a/sys/dev/pci/drm/drm_linux.c
+++ b/sys/dev/pci/drm/drm_linux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: drm_linux.c,v 1.45 2019/07/15 00:52:52 jsg Exp $ */
+/* $OpenBSD: drm_linux.c,v 1.46 2019/07/15 01:05:01 jsg Exp $ */
/*
* Copyright (c) 2013 Jonathan Gray <jsg@openbsd.org>
* Copyright (c) 2015, 2016 Mark Kettenis <kettenis@openbsd.org>
@@ -29,6 +29,10 @@
#include <linux/pagevec.h>
#include <linux/dma-fence-array.h>
+#if defined(__amd64__) || defined(__i386__)
+#include "bios.h"
+#endif
+
void
tasklet_run(void *arg)
{
@@ -407,7 +411,7 @@ dmi_first_match(const struct dmi_system_id *sysid)
return NULL;
}
-#ifdef CONFIG_DMI
+#if NBIOS > 0
extern char smbios_bios_date[];
#endif
@@ -415,7 +419,7 @@ const char *
dmi_get_system_info(int slot)
{
WARN_ON(slot != DMI_BIOS_DATE);
-#ifdef CONFIG_DMI
+#if NBIOS > 0
if (slot == DMI_BIOS_DATE)
return smbios_bios_date;
#endif