summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2018-01-30 08:44:24 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2018-01-30 08:44:24 +0000
commit35b0edf0f1f6ddd04d0bb12993dfcf313300bd9c (patch)
treeb8413a9ef4156913189db1c947f5160d3b410f34 /sys/dev
parentb2d310a24e3b01d6b1c395ff4fe52f280081e9df (diff)
Don't limit vga_switcheroo stubs to amd64/i386 and add
vga_switcheroo_fini_domain_pm_ops() stub.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/drm_linux.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/drm_linux.h b/sys/dev/pci/drm/drm_linux.h
index 0a192a1f5cf..7bab77d849e 100644
--- a/sys/dev/pci/drm/drm_linux.h
+++ b/sys/dev/pci/drm/drm_linux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: drm_linux.h,v 1.73 2018/01/30 08:40:19 jsg Exp $ */
+/* $OpenBSD: drm_linux.h,v 1.74 2018/01/30 08:44:23 jsg Exp $ */
/*
* Copyright (c) 2013, 2014, 2015 Mark Kettenis
* Copyright (c) 2017 Martin Pieuchot
@@ -1597,11 +1597,12 @@ pci_dma_mapping_error(struct pci_dev *pdev, dma_addr_t dma_addr)
void vga_get_uninterruptible(struct pci_dev *, int);
void vga_put(struct pci_dev *, int);
+#endif
+
#define vga_switcheroo_register_client(a, b, c) 0
#define vga_switcheroo_unregister_client(a)
#define vga_switcheroo_process_delayed_switch()
-
-#endif
+#define vga_switcheroo_fini_domain_pm_ops(x)
struct i2c_algorithm;