drm: remove redundant minor->device field
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 29 Jan 2014 12:12:31 +0000 (13:12 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 16 Mar 2014 11:25:19 +0000 (12:25 +0100)
commit5817878c6f4221c3ace4af63260080635063371e
treeba64249ef8d6e98bcc4384158fea1fac59cf30a4
parentcb0f93238b89c6178842ba89ecc1cd311f1a3e75
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>
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/drm_fops.c
drivers/gpu/drm/drm_stub.c
include/drm/drmP.h