summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/i915/i915_gem.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2015-02-12 04:56:04 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2015-02-12 04:56:04 +0000
commit78a7bc784c526507e7047fc5238073a95ac2a7d4 (patch)
tree734fc6d8f185cca2990c988772a3cdab17bda079 /sys/dev/pci/drm/i915/i915_gem.c
parent82be746355ffdce42b6b0f9599bfcf79e4b19a98 (diff)
Rename the struct device member of inteldrm_softc to sc_dev and rename the
pointer to the drm subdevice to dev such that we can match the linux code better. ok jsg@
Diffstat (limited to 'sys/dev/pci/drm/i915/i915_gem.c')
-rw-r--r--sys/dev/pci/drm/i915/i915_gem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/i915/i915_gem.c b/sys/dev/pci/drm/i915/i915_gem.c
index f775c160b9b..2f205da00d4 100644
--- a/sys/dev/pci/drm/i915/i915_gem.c
+++ b/sys/dev/pci/drm/i915/i915_gem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i915_gem.c,v 1.83 2015/02/12 02:12:02 kettenis Exp $ */
+/* $OpenBSD: i915_gem.c,v 1.84 2015/02/12 04:56:03 kettenis Exp $ */
/*
* Copyright (c) 2008-2009 Owain G. Ainsworth <oga@openbsd.org>
*
@@ -2472,7 +2472,7 @@ i915_gem_retire_work_handler(void *arg1)
bool idle;
int i;
- dev = (struct drm_device *)dev_priv->drmdev;
+ dev = dev_priv->dev;
/* Come back later if the device is busy... */
if (rw_enter(&dev->struct_mutex, RW_NOSLEEP | RW_WRITE)) {