diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-02-11 12:30:04 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-02-11 15:36:43 +0100 |
commit | 80834b377e1b25c2d56c59a1984451b29eae6501 (patch) | |
tree | 8985bf7258a7e2aa33e91ac33a6bc297d1eeff7c /xf86drm.c | |
parent | 7e0460c6d4b509983307f3106ad56c6622c0c7f2 (diff) |
drm: use drmIoctl everywhere
Well just core drm. All the other callers in there that still use
direct calls to ioctl have some custom retry logic already, so should
be good already.
All the other offenders (tests, freedreno/kgsl, ...) don't really
matter (e.g. kgsl is the blob library and so not a drm thing) or are
again special exceptions with their own retry loops.
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'xf86drm.c')
-rw-r--r-- | xf86drm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xf86drm.c b/xf86drm.c index fb673b58afb3..263d6835c29a 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -2543,12 +2543,12 @@ void drmCloseOnce(int fd) int drmSetMaster(int fd) { - return ioctl(fd, DRM_IOCTL_SET_MASTER, 0); + return drmIoctl(fd, DRM_IOCTL_SET_MASTER, 0); } int drmDropMaster(int fd) { - return ioctl(fd, DRM_IOCTL_DROP_MASTER, 0); + return drmIoctl(fd, DRM_IOCTL_DROP_MASTER, 0); } char *drmGetDeviceNameFromFd(int fd) |