[FreeBSD] We should use dev2unit() rather than minor()
parent
7dbeb18777
commit
8256c347cc
|
@ -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);
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue