summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/drm_drv.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_drv.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_drv.c')
-rw-r--r--sys/dev/drm/drm_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm/drm_drv.c b/sys/dev/drm/drm_drv.c
index 0d8e60f..8a0cdf4 100644
--- a/sys/dev/drm/drm_drv.c
+++ b/sys/dev/drm/drm_drv.c
@@ -537,7 +537,7 @@ int drm_open(struct cdev *kdev, int flags, int fmt, DRM_STRUCTPROC *p)
struct drm_device *dev = NULL;
int retcode = 0;
- dev = DRIVER_SOFTC(minor(kdev));
+ dev = DRIVER_SOFTC(dev2unit(kdev));
DRM_DEBUG("open_count = %d\n", dev->open_count);
OpenPOWER on IntegriCloud