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>
main
Daniel Vetter 2015-02-11 12:30:04 +01:00
parent 7e0460c6d4
commit 80834b377e
1 changed files with 2 additions and 2 deletions

View File

@ -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)