summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2014-07-02 06:09:50 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2014-07-02 06:09:50 +0000
commit34082dd8dc0dff512e6eb8f423c7b593954daa20 (patch)
tree2a5910578af31af9b1a65e7bfb6969f408dafd6b /sys/dev/pci/drm
parent96ceff8aaefb8ebfd41840f7f1e355b8db2f5660 (diff)
Use real parameter types for u{dv,vn}_attach() instead of void *
ok guenther
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r--sys/dev/pci/drm/drm_drv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c
index b6fa7932d1c..5a59329929f 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.127 2014/04/07 06:43:11 jsg Exp $ */
+/* $OpenBSD: drm_drv.c,v 1.128 2014/07/02 06:09:49 matthew Exp $ */
/*-
* Copyright 2007-2009 Owain G. Ainsworth <oga@openbsd.org>
* Copyright © 2008 Intel Corporation
@@ -1691,9 +1691,8 @@ out_free_list:
}
struct uvm_object *
-udv_attach_drm(void *arg, vm_prot_t accessprot, voff_t off, vsize_t size)
+udv_attach_drm(dev_t device, vm_prot_t accessprot, voff_t off, vsize_t size)
{
- dev_t device = *((dev_t *)arg);
struct drm_device *dev = drm_get_device_from_kdev(device);
struct drm_local_map *map;
struct drm_gem_object *obj;