diff options
author | Patrik Jakobsson <patrik.r.jakobsson@gmail.com> | 2016-11-01 15:43:15 +0100 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2016-11-02 11:31:04 -0400 |
commit | 0a97c81a9717431e6c57ea845b59c3c345edce67 (patch) | |
tree | 64c73288380cf4ba71c996fe808539ef8e0d400e /drivers/gpu/drm/gma500 | |
parent | fb422950c6cd726fd36eb72a7cf84583440a18a2 (diff) | |
download | op-kernel-dev-0a97c81a9717431e6c57ea845b59c3c345edce67.zip op-kernel-dev-0a97c81a9717431e6c57ea845b59c3c345edce67.tar.gz |
drm/gma500: Add compat ioctl
Hook up drm_compat_ioctl to support 32-bit userspace on 64-bit kernels.
It turns out that N2600 and N2800 comes with 64-bit enabled. We
previously assumed there where no such systems out there.
Cc: stable@vger.kernel.org
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20161101144315.2955-1-patrik.r.jakobsson@gmail.com
Diffstat (limited to 'drivers/gpu/drm/gma500')
-rw-r--r-- | drivers/gpu/drm/gma500/psb_drv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index 50eb944f..8f3ca52 100644 --- a/drivers/gpu/drm/gma500/psb_drv.c +++ b/drivers/gpu/drm/gma500/psb_drv.c @@ -473,6 +473,9 @@ static const struct file_operations psb_gem_fops = { .open = drm_open, .release = drm_release, .unlocked_ioctl = psb_unlocked_ioctl, +#ifdef CONFIG_COMPAT + .compat_ioctl = drm_compat_ioctl, +#endif .mmap = drm_gem_mmap, .poll = drm_poll, .read = drm_read, |