From f1e7dc373a1f39d827c33e6d776fa4428dcdafab Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 30 Jan 2018 08:44:23 +0000 Subject: [PATCH] Don't limit vga_switcheroo stubs to amd64/i386 and add vga_switcheroo_fini_domain_pm_ops() stub. --- sys/dev/pci/drm/drm_linux.h | 7 ++++--- 1 file 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; -- 2.20.1