summaryrefslogtreecommitdiffstats
path: root/sys/dev
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
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')
-rw-r--r--sys/dev/drm/drm_drv.c2
-rw-r--r--sys/dev/drm/drm_fops.c2
2 files changed, 2 insertions, 2 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);
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