diff options
author | Robert Noland <rnoland@2hip.net> | 2008-10-23 15:46:32 -0400 |
---|---|---|
committer | Robert Noland <rnoland@2hip.net> | 2008-10-23 15:46:32 -0400 |
commit | 8256c347cc80db0371b40b34ee8a163908d50079 (patch) | |
tree | f1f6b3e80905f0b5214cb81b28e73b99bdf36827 | |
parent | 7dbeb18777a4dc1e7eb3c6bc4da3e72456afc8fc (diff) |
[FreeBSD] We should use dev2unit() rather than minor()
-rw-r--r-- | bsd-core/drm_drv.c | 2 | ||||
-rw-r--r-- | bsd-core/drm_fops.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bsd-core/drm_drv.c b/bsd-core/drm_drv.c index 725e5a9d..afcad193 100644 --- a/bsd-core/drm_drv.c +++ b/bsd-core/drm_drv.c @@ -534,7 +534,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/bsd-core/drm_fops.c b/bsd-core/drm_fops.c index c6a8d195..e4cf8461 100644 --- a/bsd-core/drm_fops.c +++ b/bsd-core/drm_fops.c @@ -41,7 +41,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) |