diff options
Diffstat (limited to 'drivers/gpu/drm/via/via_irq.c')
-rw-r--r-- | drivers/gpu/drm/via/via_irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/via/via_irq.c b/drivers/gpu/drm/via/via_irq.c index 85a4cb955204..1319433816d3 100644 --- a/drivers/gpu/drm/via/via_irq.c +++ b/drivers/gpu/drm/via/via_irq.c | |||
@@ -138,7 +138,7 @@ irqreturn_t via_driver_irq_handler(int irq, void *arg) | |||
138 | for (i = 0; i < dev_priv->num_irqs; ++i) { | 138 | for (i = 0; i < dev_priv->num_irqs; ++i) { |
139 | if (status & cur_irq->pending_mask) { | 139 | if (status & cur_irq->pending_mask) { |
140 | atomic_inc(&cur_irq->irq_received); | 140 | atomic_inc(&cur_irq->irq_received); |
141 | DRM_WAKEUP(&cur_irq->irq_queue); | 141 | wake_up(&cur_irq->irq_queue); |
142 | handled = 1; | 142 | handled = 1; |
143 | if (dev_priv->irq_map[drm_via_irq_dma0_td] == i) | 143 | if (dev_priv->irq_map[drm_via_irq_dma0_td] == i) |
144 | via_dmablit_handler(dev, 0, 1); | 144 | via_dmablit_handler(dev, 0, 1); |
@@ -287,7 +287,7 @@ void via_driver_irq_preinstall(struct drm_device *dev) | |||
287 | atomic_set(&cur_irq->irq_received, 0); | 287 | atomic_set(&cur_irq->irq_received, 0); |
288 | cur_irq->enable_mask = dev_priv->irq_masks[i][0]; | 288 | cur_irq->enable_mask = dev_priv->irq_masks[i][0]; |
289 | cur_irq->pending_mask = dev_priv->irq_masks[i][1]; | 289 | cur_irq->pending_mask = dev_priv->irq_masks[i][1]; |
290 | DRM_INIT_WAITQUEUE(&cur_irq->irq_queue); | 290 | init_waitqueue_head(&cur_irq->irq_queue); |
291 | dev_priv->irq_enable_mask |= cur_irq->enable_mask; | 291 | dev_priv->irq_enable_mask |= cur_irq->enable_mask; |
292 | dev_priv->irq_pending_mask |= cur_irq->pending_mask; | 292 | dev_priv->irq_pending_mask |= cur_irq->pending_mask; |
293 | cur_irq++; | 293 | cur_irq++; |