diff options
Diffstat (limited to 'linux-core/drm_context.c')
-rw-r--r-- | linux-core/drm_context.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux-core/drm_context.c b/linux-core/drm_context.c index a6fec094..feb4c07a 100644 --- a/linux-core/drm_context.c +++ b/linux-core/drm_context.c @@ -419,8 +419,8 @@ int drm_addctx(struct inode *inode, struct file *filp, } if (ctx.handle != DRM_KERNEL_CONTEXT) { - if (dev->fn_tbl->context_ctor) - dev->fn_tbl->context_ctor(dev, ctx.handle); + if (dev->driver->context_ctor) + dev->driver->context_ctor(dev, ctx.handle); } ctx_entry = drm_alloc(sizeof(*ctx_entry), DRM_MEM_CTXLIST); @@ -554,8 +554,8 @@ int drm_rmctx(struct inode *inode, struct file *filp, priv->remove_auth_on_close = 1; } if (ctx.handle != DRM_KERNEL_CONTEXT) { - if (dev->fn_tbl->context_dtor) - dev->fn_tbl->context_dtor(dev, ctx.handle); + if (dev->driver->context_dtor) + dev->driver->context_dtor(dev, ctx.handle); drm_ctxbitmap_free(dev, ctx.handle); } |