aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/drm/drm_fops.c
diff options
context:
space:
mode:
authorRobert Noland <rnoland@FreeBSD.org>2008-10-23 20:23:03 +0000
committerRobert Noland <rnoland@FreeBSD.org>2008-10-23 20:23:03 +0000
commitcdab8377daa6a8fb10e6eae02c20a8378f55a159 (patch)
tree30e2d7d30560cc236a3c6e752e764c8b294506c6 /sys/dev/drm/drm_fops.c
parentfd3c63db724390f84c0e4bbcdf17edd5b1923db7 (diff)
downloadsrc-cdab8377daa6a8fb10e6eae02c20a8378f55a159.tar.gz
src-cdab8377daa6a8fb10e6eae02c20a8378f55a159.zip
Notes
Diffstat (limited to 'sys/dev/drm/drm_fops.c')
-rw-r--r--sys/dev/drm/drm_fops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm/drm_fops.c b/sys/dev/drm/drm_fops.c
index d73503f4945d..f766928d6515 100644
--- a/sys/dev/drm/drm_fops.c
+++ b/sys/dev/drm/drm_fops.c
@@ -44,7 +44,7 @@ int drm_open_helper(struct cdev *kdev, int flags, int fmt, DRM_STRUCTPROC *p,
struct drm_device *dev)
{
struct drm_file *priv;
- int m = minor(kdev);
+ int m = dev2unit(kdev);
int retcode;
if (flags & O_EXCL)