diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-12-11 11:34:46 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-12-18 02:35:45 +0100 |
commit | 4cda878b129aa873bc7c83c61f2a8d830b138de6 (patch) | |
tree | a4b52883b5128a9ddccca73b17405f8f95a207fb /include/drm | |
parent | drm: Kill DRM_*MEMORYBARRIER (diff) | |
download | linux-4cda878b129aa873bc7c83c61f2a8d830b138de6.tar.xz linux-4cda878b129aa873bc7c83c61f2a8d830b138de6.zip |
drm: Kill DRM_SUSER
Checking directly for the right capability is simpler. Also this rids
us of a few places that use DRM_CURRENTPID.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_os_linux.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/drm/drm_os_linux.h b/include/drm/drm_os_linux.h index 43008938b6b2..86ab99bc0ac5 100644 --- a/include/drm/drm_os_linux.h +++ b/include/drm/drm_os_linux.h @@ -21,7 +21,6 @@ static inline void writeq(u64 val, void __iomem *reg) /** Current process ID */ #define DRM_CURRENTPID task_pid_nr(current) -#define DRM_SUSER(p) capable(CAP_SYS_ADMIN) #define DRM_UDELAY(d) udelay(d) /** Read a byte from a MMIO region */ #define DRM_READ8(map, offset) readb(((void __iomem *)(map)->handle) + (offset)) |