summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/drm_fops.c
diff options
context:
space:
mode:
authorrnoland <rnoland@FreeBSD.org>2008-10-23 20:23:03 +0000
committerrnoland <rnoland@FreeBSD.org>2008-10-23 20:23:03 +0000
commit0b81365bc66eb70b9d9b1466012b41f8ccdec19a (patch)
tree30e2d7d30560cc236a3c6e752e764c8b294506c6 /sys/dev/drm/drm_fops.c
parenta92db6b830618fa87ea11a154afd498e52b7a2ef (diff)
downloadFreeBSD-src-0b81365bc66eb70b9d9b1466012b41f8ccdec19a.zip
FreeBSD-src-0b81365bc66eb70b9d9b1466012b41f8ccdec19a.tar.gz
Replace calls to minor() with dev2unit(). Ed already fixed this once,
but I inadvertently overwrote the change when I synced to git. Commit the fix in both places, so this doesn't happen again. Approved by: jhb (mentor) MFC after: 2 weeks
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 d73503f..f766928 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)
OpenPOWER on IntegriCloud