diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-01-22 19:28:49 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-13 07:48:38 -0400 |
commit | 69fa5293bf8d0ade3fd726848c7af925227e9180 (patch) | |
tree | 11024d9254b2ecdca9c00e97c2584b51aa85c4a6 /drivers/staging | |
parent | e18c04128faa2aa08547f8b73b9ecbf8fd6936af (diff) |
drm/kms: rip out drm_mode_connector_detach_encoder
It's only used by imx, and that one gets it wrong - there's no need
to deteach the encoder before removing it.
And really, neither current drm modesetting code nor all the userspace
we have can handle dynamic changes in the set of possible encoders for
a given connector. So let's just remove this before someone starts
doing something really nasty with it.
As a plus, one less kerneldoc comment to write.
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/imx-drm/imx-ldb.c | 2 | ||||
-rw-r--r-- | drivers/staging/imx-drm/parallel-display.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/imx-drm/imx-ldb.c b/drivers/staging/imx-drm/imx-ldb.c index 7e593296ac47..c703e986b44c 100644 --- a/drivers/staging/imx-drm/imx-ldb.c +++ b/drivers/staging/imx-drm/imx-ldb.c | |||
@@ -595,8 +595,6 @@ static int imx_ldb_remove(struct platform_device *pdev) | |||
595 | struct drm_connector *connector = &channel->connector; | 595 | struct drm_connector *connector = &channel->connector; |
596 | struct drm_encoder *encoder = &channel->encoder; | 596 | struct drm_encoder *encoder = &channel->encoder; |
597 | 597 | ||
598 | drm_mode_connector_detach_encoder(connector, encoder); | ||
599 | |||
600 | imx_drm_remove_connector(channel->imx_drm_connector); | 598 | imx_drm_remove_connector(channel->imx_drm_connector); |
601 | imx_drm_remove_encoder(channel->imx_drm_encoder); | 599 | imx_drm_remove_encoder(channel->imx_drm_encoder); |
602 | } | 600 | } |
diff --git a/drivers/staging/imx-drm/parallel-display.c b/drivers/staging/imx-drm/parallel-display.c index 351d61dede00..823d015d2140 100644 --- a/drivers/staging/imx-drm/parallel-display.c +++ b/drivers/staging/imx-drm/parallel-display.c | |||
@@ -244,8 +244,6 @@ static int imx_pd_remove(struct platform_device *pdev) | |||
244 | struct drm_connector *connector = &imxpd->connector; | 244 | struct drm_connector *connector = &imxpd->connector; |
245 | struct drm_encoder *encoder = &imxpd->encoder; | 245 | struct drm_encoder *encoder = &imxpd->encoder; |
246 | 246 | ||
247 | drm_mode_connector_detach_encoder(connector, encoder); | ||
248 | |||
249 | imx_drm_remove_connector(imxpd->imx_drm_connector); | 247 | imx_drm_remove_connector(imxpd->imx_drm_connector); |
250 | imx_drm_remove_encoder(imxpd->imx_drm_encoder); | 248 | imx_drm_remove_encoder(imxpd->imx_drm_encoder); |
251 | 249 | ||