diff options
| author | Robert Noland <rnoland@FreeBSD.org> | 2009-08-23 14:31:20 +0000 |
|---|---|---|
| committer | Robert Noland <rnoland@FreeBSD.org> | 2009-08-23 14:31:20 +0000 |
| commit | 2418baa339922b3f79007c2f66e2fb614e15dfe0 (patch) | |
| tree | 14a46ba90b7479e2652c5a75387fb9cb53a43195 /sys/dev/drm/drm_fops.c | |
| parent | f21c255c2a937db7c430d949ac1bc0aa398bd822 (diff) | |
Notes
Diffstat (limited to 'sys/dev/drm/drm_fops.c')
| -rw-r--r-- | sys/dev/drm/drm_fops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/drm/drm_fops.c b/sys/dev/drm/drm_fops.c index f766928d6515..3f743e04ca90 100644 --- a/sys/dev/drm/drm_fops.c +++ b/sys/dev/drm/drm_fops.c @@ -44,14 +44,13 @@ int drm_open_helper(struct cdev *kdev, int flags, int fmt, DRM_STRUCTPROC *p, struct drm_device *dev) { struct drm_file *priv; - int m = dev2unit(kdev); int retcode; if (flags & O_EXCL) return EBUSY; /* No exclusive opens */ dev->flags = flags; - DRM_DEBUG("pid = %d, minor = %d\n", DRM_CURRENTPID, m); + DRM_DEBUG("pid = %d, device = %s\n", DRM_CURRENTPID, devtoname(kdev)); priv = malloc(sizeof(*priv), DRM_MEM_FILES, M_NOWAIT | M_ZERO); if (priv == NULL) { @@ -68,7 +67,6 @@ int drm_open_helper(struct cdev *kdev, int flags, int fmt, DRM_STRUCTPROC *p, priv->dev = dev; priv->uid = p->td_ucred->cr_svuid; priv->pid = p->td_proc->p_pid; - priv->minor = m; priv->ioctl_count = 0; /* for compatibility root is always authenticated */ |
