struct fimd_context {
        struct exynos_drm_subdrv        subdrv;
+       struct drm_device               *drm_dev;
        int                             irq;
        struct drm_crtc                 *crtc;
        struct clk                      *bus_clk;
        .power_on = fimd_display_power_on,
 };
 
+static int fimd_mgr_initialize(struct device *subdrv_dev,
+               struct drm_device *drm_dev)
+{
+       struct fimd_context *ctx = get_fimd_context(subdrv_dev);
+
+       ctx->drm_dev = drm_dev;
+
+       return 0;
+}
+
 static void fimd_dpms(struct device *subdrv_dev, int mode)
 {
        struct fimd_context *ctx = get_fimd_context(subdrv_dev);
 }
 
 static struct exynos_drm_manager_ops fimd_manager_ops = {
+       .initialize = fimd_mgr_initialize,
        .dpms = fimd_dpms,
        .apply = fimd_apply,
        .commit = fimd_commit,
 {
        struct fimd_context *ctx = (struct fimd_context *)dev_id;
        struct exynos_drm_subdrv *subdrv = &ctx->subdrv;
-       struct drm_device *drm_dev = subdrv->drm_dev;
        struct exynos_drm_manager *manager = subdrv->manager;
        u32 val;
 
                writel(VIDINTCON1_INT_FRAME, ctx->regs + VIDINTCON1);
 
        /* check the crtc is detached already from encoder */
-       if (manager->pipe < 0)
+       if (manager->pipe < 0 || !ctx->drm_dev)
                goto out;
 
-       drm_handle_vblank(drm_dev, manager->pipe);
-       exynos_drm_crtc_finish_pageflip(drm_dev, manager->pipe);
+       drm_handle_vblank(ctx->drm_dev, manager->pipe);
+       exynos_drm_crtc_finish_pageflip(ctx->drm_dev, manager->pipe);
 
        /* set wait vsync event to zero and wake up queue. */
        if (atomic_read(&ctx->wait_vsync_event)) {