diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-01-29 13:12:31 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-03-16 12:25:19 +0100 |
commit | 5817878c6f4221c3ace4af63260080635063371e (patch) | |
tree | ba64249ef8d6e98bcc4384158fea1fac59cf30a4 /drivers/gpu/drm/drm_stub.c | |
parent | cb0f93238b89c6178842ba89ecc1cd311f1a3e75 (diff) | |
download | op-kernel-dev-5817878c6f4221c3ace4af63260080635063371e.zip op-kernel-dev-5817878c6f4221c3ace4af63260080635063371e.tar.gz |
drm: remove redundant minor->device field
Whenever we access minor->device, we are in a minor->kdev->...->fops
callback so the minor->kdev pointer *must* be valid. Thus, simply use
minor->kdev->devt instead of minor->device and remove the redundant field.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/drm_stub.c')
-rw-r--r-- | drivers/gpu/drm/drm_stub.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c index fe9595b..96fe5de 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) if (minor_id < 0) return minor_id; - new_minor->device = MKDEV(DRM_MAJOR, minor_id); new_minor->index = minor_id; idr_replace(&drm_minors_idr, new_minor, minor_id); |