summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiu Ying <victor.liu@nxp.com>2017-11-16 17:17:21 +0800
committerLiu Ying <victor.liu@nxp.com>2017-11-17 13:21:31 +0800
commit678d789d304d8c9d438ae34aa83fdd0a48f94abd (patch)
tree8ea9178f8b32911d5f064cb947e93de491eb2605
parent43747ff885f3883f34710830798a7e98f4d96b84 (diff)
MLK-16842 drm/imx: core: Add 32bit ioctrls support for 64bit processors
Since we have 64bit processors running imx-drm, we should support 32bit ioctrls for them. Reported-by: Ivan Liu <xiaowen.liu@nxp.com> Tested-by: Ivan Liu <xiaowen.liu@nxp.com> Signed-off-by: Liu Ying <victor.liu@nxp.com> (cherry picked from commit 98699db62b211b24f9a5cccc7cefcc54d40249cc)
-rw-r--r--drivers/gpu/drm/imx/imx-drm-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c
index ee23eb37e8bb..90935c4c514c 100644
--- a/drivers/gpu/drm/imx/imx-drm-core.c
+++ b/drivers/gpu/drm/imx/imx-drm-core.c
@@ -90,6 +90,9 @@ static const struct file_operations imx_drm_driver_fops = {
.open = drm_open,
.release = drm_release,
.unlocked_ioctl = drm_ioctl,
+#ifdef CONFIG_COMPAT
+ .compat_ioctl = drm_compat_ioctl,
+#endif
.mmap = drm_gem_cma_mmap,
.poll = drm_poll,
.read = drm_read,