[FreeBSD] We should use dev2unit() rather than minor()

main
Robert Noland 2008-10-23 15:46:32 -04:00
parent 7dbeb18777
commit 8256c347cc
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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)