aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Gray2016-11-30 22:18:40 -0600
committerEmil Velikov2016-12-05 11:52:53 -0600
commitd05b9f2dde17e60996437332219b4b568f7edefa (patch)
tree134ef9c73e952eedc832b11910d41db5e6327b46 /xf86drm.c
parentf189011b362a2dff3ab914523e546cc96f53df39 (diff)
downloadexternal-libgbm-d05b9f2dde17e60996437332219b4b568f7edefa.tar.gz
external-libgbm-d05b9f2dde17e60996437332219b4b568f7edefa.tar.xz
external-libgbm-d05b9f2dde17e60996437332219b4b568f7edefa.zip
xf86drm: implement drmParseSubsystemType for OpenBSD
Implement drmParseSubsystemType for OpenBSD by always returning DRM_BUS_PCI. No non-pci drm drivers are in the kernel and this is unlikely to change anytime soon as the existing ones aren't permissively licensed. Signed-off-by: Jonathan Gray <jsg@jsg.id.au> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'xf86drm.c')
-rw-r--r--xf86drm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xf86drm.c b/xf86drm.c
index 65764de4..a889d48d 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -2887,6 +2887,8 @@ static int drmParseSubsystemType(int maj, int min)
2887 return DRM_BUS_PCI; 2887 return DRM_BUS_PCI;
2888 2888
2889 return -EINVAL; 2889 return -EINVAL;
2890#elif defined(__OpenBSD__)
2891 return DRM_BUS_PCI;
2890#else 2892#else
2891#warning "Missing implementation of drmParseSubsystemType" 2893#warning "Missing implementation of drmParseSubsystemType"
2892 return -EINVAL; 2894 return -EINVAL;