diff options
author | Jani Nikula <jani.nikula@intel.com> | 2016-11-01 18:40:44 +0300 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2016-11-02 18:33:47 +0300 |
commit | 55edf41b699bcb31dcf45082d99e91b7e217206e (patch) | |
tree | ffebf8ce162670b22e2befa0a438cb0b740f385d /drivers/gpu/drm/sis | |
parent | 0a97c81a9717431e6c57ea845b59c3c345edce67 (diff) | |
download | linux-55edf41b699bcb31dcf45082d99e91b7e217206e.tar.xz |
drm: define drm_compat_ioctl NULL on CONFIG_COMPAT=n and reduce #ifdefs
If we define drm_compat_ioctl NULL on CONFIG_COMPAT=n, we don't have to
check for the config everywhere.
Reviewed-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1478014844-27454-1-git-send-email-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/sis')
-rw-r--r-- | drivers/gpu/drm/sis/sis_drv.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/sis/sis_drv.c b/drivers/gpu/drm/sis/sis_drv.c index ae9839886c4d..a836451920f0 100644 --- a/drivers/gpu/drm/sis/sis_drv.c +++ b/drivers/gpu/drm/sis/sis_drv.c @@ -72,9 +72,7 @@ static const struct file_operations sis_driver_fops = { .unlocked_ioctl = drm_ioctl, .mmap = drm_legacy_mmap, .poll = drm_poll, -#ifdef CONFIG_COMPAT .compat_ioctl = drm_compat_ioctl, -#endif .llseek = noop_llseek, }; |