diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2020-02-15 18:33:42 +0100 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2020-02-15 21:15:17 +0100 |
commit | 2f3ba73ae54f8372c1bd51cb594b2bf0ac8f9f3a (patch) | |
tree | af0eecf7b703c625b11f3c7115a83c41d4c49a66 /drivers/gpu/drm/drm_crtc_helper.c | |
parent | drm/print: clean up RATELIMITED macros (diff) | |
download | linux-2f3ba73ae54f8372c1bd51cb594b2bf0ac8f9f3a.tar.xz linux-2f3ba73ae54f8372c1bd51cb594b2bf0ac8f9f3a.zip |
drm: drop unused drm_crtc callback
struct drm_encoder_helper_funcs included a callback
named drm_crtc.
There are no users left - so drop it.
There was one reference in drm_crtc_helper.c,
which checked if the value was not NULL.
As it was never assigned this check could be dropped.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200215173342.GA7458@ravnborg.org
Diffstat (limited to 'drivers/gpu/drm/drm_crtc_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc_helper.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index 93a4eec429e8..a4d36aca45ea 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c @@ -244,10 +244,6 @@ drm_crtc_prepare_encoders(struct drm_device *dev) /* Disable unused encoders */ if (encoder->crtc == NULL) drm_encoder_disable(encoder); - /* Disable encoders whose CRTC is about to change */ - if (encoder_funcs->get_crtc && - encoder->crtc != (*encoder_funcs->get_crtc)(encoder)) - drm_encoder_disable(encoder); } } |