diff options
author | Dave Airlie <airlied@redhat.com> | 2019-04-23 10:01:50 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2019-04-24 12:36:32 +1000 |
commit | ee22f76306a68359c33809f8895eff603e71584b (patch) | |
tree | 2a538cae03238976c2db300f1ee5fbbecbea0160 /drivers/gpu/drm/drm_auth.c | |
parent | 83c163f7eb5948051b6fcb084ab3b81880c147dd (diff) | |
download | linux-ee22f76306a68359c33809f8895eff603e71584b.tar.gz linux-ee22f76306a68359c33809f8895eff603e71584b.tar.bz2 linux-ee22f76306a68359c33809f8895eff603e71584b.zip |
drm/legacy: remove some legacy lock struct members
This removes these unless legacy is enabled.
The lock count init is unneeded anyways since it's kzalloc.
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_auth.c')
-rw-r--r-- | drivers/gpu/drm/drm_auth.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_auth.c b/drivers/gpu/drm/drm_auth.c index ee969e9de472..e88151b65c22 100644 --- a/drivers/gpu/drm/drm_auth.c +++ b/drivers/gpu/drm/drm_auth.c @@ -103,8 +103,7 @@ struct drm_master *drm_master_create(struct drm_device *dev) return NULL; kref_init(&master->refcount); - spin_lock_init(&master->lock.spinlock); - init_waitqueue_head(&master->lock.lock_queue); + drm_master_legacy_init(master); idr_init(&master->magic_map); master->dev = dev; |