diff options
author | Dave Airlie <airlied@redhat.com> | 2019-04-23 03:01:50 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2019-04-24 05:36:32 +0300 |
commit | ee22f76306a68359c33809f8895eff603e71584b (patch) | |
tree | 2a538cae03238976c2db300f1ee5fbbecbea0160 /drivers/gpu/drm/drm_legacy.h | |
parent | 83c163f7eb5948051b6fcb084ab3b81880c147dd (diff) | |
download | linux-ee22f76306a68359c33809f8895eff603e71584b.tar.xz |
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_legacy.h')
-rw-r--r-- | drivers/gpu/drm/drm_legacy.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_legacy.h b/drivers/gpu/drm/drm_legacy.h index 6f08066ce681..51f1fabfa145 100644 --- a/drivers/gpu/drm/drm_legacy.h +++ b/drivers/gpu/drm/drm_legacy.h @@ -199,4 +199,10 @@ void drm_legacy_lock_master_cleanup(struct drm_device *dev, struct drm_master *m static inline void drm_legacy_lock_master_cleanup(struct drm_device *dev, struct drm_master *master) {} #endif +#if IS_ENABLED(CONFIG_DRM_LEGACY) +void drm_master_legacy_init(struct drm_master *master); +#else +static inline void drm_master_legacy_init(struct drm_master *master) {} +#endif + #endif /* __DRM_LEGACY_H__ */ |