diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-05-17 11:27:22 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-22 09:34:53 (GMT) |
commit | 78b68556a964e74fb803b08c5b2d9c6ba3ec3787 (patch) | |
tree | 2147b191085b2fef211e0b8048bf658dab178479 /drivers/staging/omapdrm | |
parent | 3b02ab8893d45f17ae104588e337188127068a92 (diff) | |
download | linux-fsl-qoriq-78b68556a964e74fb803b08c5b2d9c6ba3ec3787.tar.xz |
drm: Constify gem_vm_ops pointer
The GEM vm operations structure is passed to the VM core that stores it
in a const field. There vm operations structures can thus be const in
DRM as well.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Inki Dae <inki.dae@samsung.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Rob Clark <rob.clark@linaro.org>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/staging/omapdrm')
-rw-r--r-- | drivers/staging/omapdrm/omap_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/omapdrm/omap_drv.c b/drivers/staging/omapdrm/omap_drv.c index 620b8d5..071c770 100644 --- a/drivers/staging/omapdrm/omap_drv.c +++ b/drivers/staging/omapdrm/omap_drv.c @@ -726,7 +726,7 @@ static void dev_irq_uninstall(struct drm_device *dev) DBG("irq_uninstall: dev=%p", dev); } -static struct vm_operations_struct omap_gem_vm_ops = { +static const struct vm_operations_struct omap_gem_vm_ops = { .fault = omap_gem_fault, .open = drm_gem_vm_open, .close = drm_gem_vm_close, |