summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_drv.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2018-01-30 08:17:32 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2018-01-30 08:17:32 +0000
commit834a6c0e63eedd0d5f09cb876809d90493dfb556 (patch)
tree1441effc523765d7d3f3fc8a7f89f6e088bbfb53 /sys/dev/pci/drm/drm_drv.c
parent96fbb4463162856b2d8a588d02f536abad314d4f (diff)
add drm_invalid_op()
Diffstat (limited to 'sys/dev/pci/drm/drm_drv.c')
-rw-r--r--sys/dev/pci/drm/drm_drv.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c
index 065691abe85..1cefbb8e5e8 100644
--- a/sys/dev/pci/drm/drm_drv.c
+++ b/sys/dev/pci/drm/drm_drv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: drm_drv.c,v 1.155 2018/01/13 13:03:42 robert Exp $ */
+/* $OpenBSD: drm_drv.c,v 1.156 2018/01/30 08:17:31 jsg Exp $ */
/*-
* Copyright 2007-2009 Owain G. Ainsworth <oga@openbsd.org>
* Copyright © 2008 Intel Corporation
@@ -297,6 +297,12 @@ int drm_noop(struct drm_device *dev, void *data,
return 0;
}
+int drm_invalid_op(struct drm_device *dev, void *data,
+ struct drm_file *file_priv)
+{
+ return -EINVAL;
+}
+
/*
* attach drm to a pci-based driver.
*