From: Jonathan Gray Date: Thu, 1 Dec 2016 04:18:40 +0000 (+1100) Subject: xf86drm: implement drmParseSubsystemType for OpenBSD X-Git-Tag: libdrm-2.4.75~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d05b9f2dde17e60996437332219b4b568f7edefa;p=platform%2Fupstream%2Flibdrm.git 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 Reviewed-by: Emil Velikov --- diff --git a/xf86drm.c b/xf86drm.c index 65764de..a889d48 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -2887,6 +2887,8 @@ static int drmParseSubsystemType(int maj, int min) return DRM_BUS_PCI; return -EINVAL; +#elif defined(__OpenBSD__) + return DRM_BUS_PCI; #else #warning "Missing implementation of drmParseSubsystemType" return -EINVAL;