summaryrefslogtreecommitdiff
path: root/linux-core/via_fence.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core/via_fence.c')
-rw-r--r--linux-core/via_fence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/via_fence.c b/linux-core/via_fence.c
index 3a680a32..20df4779 100644
--- a/linux-core/via_fence.c
+++ b/linux-core/via_fence.c
@@ -63,7 +63,7 @@ static void via_fence_poll(struct drm_device *dev, uint32_t class,
if (!dev_priv->have_idlelock) {
- drm_idlelock_take(&dev->lock);
+ drm_idlelock_take(&dev->primary->master->lock);
dev_priv->have_idlelock = 1;
}