diff options
author | Marek Vasut <marex@denx.de> | 2016-10-04 18:23:31 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-10-05 09:20:36 -0400 |
commit | bf3b123e3d946dc110020814106ad84a36898d3a (patch) | |
tree | 17b2dde49db9c63b4d0db58dbdf942ac881ec845 /drivers/gpu | |
parent | 7d83a155f0c4bf86bd6dfced1768c0a34add8f1b (diff) |
drm/bridge: Call drm_connector_cleanup directly
Remove the unnecessary wrapper functions around drm_connector_cleanup().
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161004222331.7200-1-marex@denx.de
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/bridge/analogix-anx78xx.c | 7 | ||||
-rw-r--r-- | drivers/gpu/drm/bridge/nxp-ptn3460.c | 7 | ||||
-rw-r--r-- | drivers/gpu/drm/bridge/parade-ps8622.c | 7 |
3 files changed, 3 insertions, 18 deletions
diff --git a/drivers/gpu/drm/bridge/analogix-anx78xx.c b/drivers/gpu/drm/bridge/analogix-anx78xx.c index f9f03bcba0af..a2a82366a771 100644 --- a/drivers/gpu/drm/bridge/analogix-anx78xx.c +++ b/drivers/gpu/drm/bridge/analogix-anx78xx.c | |||
@@ -1001,16 +1001,11 @@ static enum drm_connector_status anx78xx_detect(struct drm_connector *connector, | |||
1001 | return connector_status_connected; | 1001 | return connector_status_connected; |
1002 | } | 1002 | } |
1003 | 1003 | ||
1004 | static void anx78xx_connector_destroy(struct drm_connector *connector) | ||
1005 | { | ||
1006 | drm_connector_cleanup(connector); | ||
1007 | } | ||
1008 | |||
1009 | static const struct drm_connector_funcs anx78xx_connector_funcs = { | 1004 | static const struct drm_connector_funcs anx78xx_connector_funcs = { |
1010 | .dpms = drm_atomic_helper_connector_dpms, | 1005 | .dpms = drm_atomic_helper_connector_dpms, |
1011 | .fill_modes = drm_helper_probe_single_connector_modes, | 1006 | .fill_modes = drm_helper_probe_single_connector_modes, |
1012 | .detect = anx78xx_detect, | 1007 | .detect = anx78xx_detect, |
1013 | .destroy = anx78xx_connector_destroy, | 1008 | .destroy = drm_connector_cleanup, |
1014 | .reset = drm_atomic_helper_connector_reset, | 1009 | .reset = drm_atomic_helper_connector_reset, |
1015 | .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, | 1010 | .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, |
1016 | .atomic_destroy_state = drm_atomic_helper_connector_destroy_state, | 1011 | .atomic_destroy_state = drm_atomic_helper_connector_destroy_state, |
diff --git a/drivers/gpu/drm/bridge/nxp-ptn3460.c b/drivers/gpu/drm/bridge/nxp-ptn3460.c index 93f3dacf9e27..f1a99938e924 100644 --- a/drivers/gpu/drm/bridge/nxp-ptn3460.c +++ b/drivers/gpu/drm/bridge/nxp-ptn3460.c | |||
@@ -245,16 +245,11 @@ static enum drm_connector_status ptn3460_detect(struct drm_connector *connector, | |||
245 | return connector_status_connected; | 245 | return connector_status_connected; |
246 | } | 246 | } |
247 | 247 | ||
248 | static void ptn3460_connector_destroy(struct drm_connector *connector) | ||
249 | { | ||
250 | drm_connector_cleanup(connector); | ||
251 | } | ||
252 | |||
253 | static const struct drm_connector_funcs ptn3460_connector_funcs = { | 248 | static const struct drm_connector_funcs ptn3460_connector_funcs = { |
254 | .dpms = drm_atomic_helper_connector_dpms, | 249 | .dpms = drm_atomic_helper_connector_dpms, |
255 | .fill_modes = drm_helper_probe_single_connector_modes, | 250 | .fill_modes = drm_helper_probe_single_connector_modes, |
256 | .detect = ptn3460_detect, | 251 | .detect = ptn3460_detect, |
257 | .destroy = ptn3460_connector_destroy, | 252 | .destroy = drm_connector_cleanup, |
258 | .reset = drm_atomic_helper_connector_reset, | 253 | .reset = drm_atomic_helper_connector_reset, |
259 | .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, | 254 | .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, |
260 | .atomic_destroy_state = drm_atomic_helper_connector_destroy_state, | 255 | .atomic_destroy_state = drm_atomic_helper_connector_destroy_state, |
diff --git a/drivers/gpu/drm/bridge/parade-ps8622.c b/drivers/gpu/drm/bridge/parade-ps8622.c index f1b39a2645cc..6f7c2f9860d2 100644 --- a/drivers/gpu/drm/bridge/parade-ps8622.c +++ b/drivers/gpu/drm/bridge/parade-ps8622.c | |||
@@ -483,16 +483,11 @@ static enum drm_connector_status ps8622_detect(struct drm_connector *connector, | |||
483 | return connector_status_connected; | 483 | return connector_status_connected; |
484 | } | 484 | } |
485 | 485 | ||
486 | static void ps8622_connector_destroy(struct drm_connector *connector) | ||
487 | { | ||
488 | drm_connector_cleanup(connector); | ||
489 | } | ||
490 | |||
491 | static const struct drm_connector_funcs ps8622_connector_funcs = { | 486 | static const struct drm_connector_funcs ps8622_connector_funcs = { |
492 | .dpms = drm_atomic_helper_connector_dpms, | 487 | .dpms = drm_atomic_helper_connector_dpms, |
493 | .fill_modes = drm_helper_probe_single_connector_modes, | 488 | .fill_modes = drm_helper_probe_single_connector_modes, |
494 | .detect = ps8622_detect, | 489 | .detect = ps8622_detect, |
495 | .destroy = ps8622_connector_destroy, | 490 | .destroy = drm_connector_cleanup, |
496 | .reset = drm_atomic_helper_connector_reset, | 491 | .reset = drm_atomic_helper_connector_reset, |
497 | .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, | 492 | .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, |
498 | .atomic_destroy_state = drm_atomic_helper_connector_destroy_state, | 493 | .atomic_destroy_state = drm_atomic_helper_connector_destroy_state, |