diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/drm_drv.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_fops.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_stub.c | 1 |
3 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 345be03c23db..ec651be2f3cb 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c | |||
@@ -344,7 +344,7 @@ long drm_ioctl(struct file *filp, | |||
344 | 344 | ||
345 | DRM_DEBUG("pid=%d, dev=0x%lx, auth=%d, %s\n", | 345 | DRM_DEBUG("pid=%d, dev=0x%lx, auth=%d, %s\n", |
346 | task_pid_nr(current), | 346 | task_pid_nr(current), |
347 | (long)old_encode_dev(file_priv->minor->device), | 347 | (long)old_encode_dev(file_priv->minor->kdev->devt), |
348 | file_priv->authenticated, ioctl->name); | 348 | file_priv->authenticated, ioctl->name); |
349 | 349 | ||
350 | /* Do not trust userspace, use our own definition */ | 350 | /* Do not trust userspace, use our own definition */ |
@@ -402,7 +402,7 @@ long drm_ioctl(struct file *filp, | |||
402 | if (!ioctl) | 402 | if (!ioctl) |
403 | DRM_DEBUG("invalid ioctl: pid=%d, dev=0x%lx, auth=%d, cmd=0x%02x, nr=0x%02x\n", | 403 | DRM_DEBUG("invalid ioctl: pid=%d, dev=0x%lx, auth=%d, cmd=0x%02x, nr=0x%02x\n", |
404 | task_pid_nr(current), | 404 | task_pid_nr(current), |
405 | (long)old_encode_dev(file_priv->minor->device), | 405 | (long)old_encode_dev(file_priv->minor->kdev->devt), |
406 | file_priv->authenticated, cmd, nr); | 406 | file_priv->authenticated, cmd, nr); |
407 | 407 | ||
408 | if (kdata != stack_kdata) | 408 | if (kdata != stack_kdata) |
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c index 79478191404a..4ce5318d14bc 100644 --- a/drivers/gpu/drm/drm_fops.c +++ b/drivers/gpu/drm/drm_fops.c | |||
@@ -471,7 +471,7 @@ int drm_release(struct inode *inode, struct file *filp) | |||
471 | 471 | ||
472 | DRM_DEBUG("pid = %d, device = 0x%lx, open_count = %d\n", | 472 | DRM_DEBUG("pid = %d, device = 0x%lx, open_count = %d\n", |
473 | task_pid_nr(current), | 473 | task_pid_nr(current), |
474 | (long)old_encode_dev(file_priv->minor->device), | 474 | (long)old_encode_dev(file_priv->minor->kdev->devt), |
475 | dev->open_count); | 475 | dev->open_count); |
476 | 476 | ||
477 | /* Release any auth tokens that might point to this file_priv, | 477 | /* Release any auth tokens that might point to this file_priv, |
diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c index fe9595b750ea..96fe5dec3822 100644 --- a/drivers/gpu/drm/drm_stub.c +++ b/drivers/gpu/drm/drm_stub.c | |||
@@ -318,7 +318,6 @@ static int drm_minor_register(struct drm_device *dev, unsigned int type) | |||
318 | if (minor_id < 0) | 318 | if (minor_id < 0) |
319 | return minor_id; | 319 | return minor_id; |
320 | 320 | ||
321 | new_minor->device = MKDEV(DRM_MAJOR, minor_id); | ||
322 | new_minor->index = minor_id; | 321 | new_minor->index = minor_id; |
323 | 322 | ||
324 | idr_replace(&drm_minors_idr, new_minor, minor_id); | 323 | idr_replace(&drm_minors_idr, new_minor, minor_id); |