drm/exynos: fix build error caused by removed drm core macros
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 30 Dec 2013 07:01:29 +0000 (16:01 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 7 Jan 2014 07:53:25 +0000 (16:53 +0900)
DRM_HZ and DRM_WAKEUP macros are removed, but they still remained.
So this patch fixes build errors by replacing the macros.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fimd.c

index 267aca91b70d7a67d0e78a70e16e75fd369cafd4..a20440ce32e6c39ee450d926f668f5638df0cca8 100644 (file)
@@ -347,7 +347,7 @@ static void fimd_wait_for_vblank(struct device *dev)
         */
        if (!wait_event_timeout(ctx->wait_vsync_queue,
                                !atomic_read(&ctx->wait_vsync_event),
-                               DRM_HZ/20))
+                               HZ/20))
                DRM_DEBUG_KMS("vblank wait timed out.\n");
 }
 
@@ -706,7 +706,7 @@ static irqreturn_t fimd_irq_handler(int irq, void *dev_id)
        /* set wait vsync event to zero and wake up queue. */
        if (atomic_read(&ctx->wait_vsync_event)) {
                atomic_set(&ctx->wait_vsync_event, 0);
-               DRM_WAKEUP(&ctx->wait_vsync_queue);
+               wake_up(&ctx->wait_vsync_queue);
        }
 out:
        return IRQ_HANDLED;