drm: skip redundant minor-lookup in open path
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 29 Jan 2014 09:18:02 +0000 (10:18 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 16 Mar 2014 11:25:17 +0000 (12:25 +0100)
commitf4aede2e3291896e7cb42755ecc5b6815b6cac97
tree61f56c57664819db8bda55a6480330d302a42624
parent45e212d20fdccaf958b194e95a23ad264188c59e
drm: skip redundant minor-lookup in open path

The drm_open_helper() function is only used internally for drm_open() so
we can safely pass in the minor-object directly instead of the minor-id.
This way, we avoid the additional minor IDR lookup, which we already do
twice in drm_stub_open() and drm_open().

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_fops.c