Skip to contentSkip to conversation

drm/atmel-hlcdc: Use drm_connector_unregister_all()

PATCH In review Thierry Reding 1 participant 2 messages Mar 30, 2016

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/atmel-hlcdc: Use drm_connector_unregister_all()

From: Thierry Reding <[email protected]>

Commit 6c87e5c3ec6d ("drm: Rename drm_connector_unplug_all() to drm_connector_unregister_all()") didn't update the Atmel HLCDC driver, causing it to fail to build. While at it, remove unnecessary locking.

Cc Boris Brezillon <[email protected]>
Cc Alexey Brodkin <[email protected]>
---
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +1 -8
index 3d8d16402d07..3cddd8d0f9e5 100644
@@ -612,13 +612,6 @@ err:
 	return ret;
 }
 
-static void atmel_hlcdc_dc_connector_unplug_all(struct drm_device *dev)
-{
-	mutex_lock(&dev->mode_config.mutex);
-	drm_connector_unplug_all(dev);
-	mutex_unlock(&dev->mode_config.mutex);
-}
-
 static void atmel_hlcdc_dc_lastclose(struct drm_device *dev)
 {
 	struct atmel_hlcdc_dc *dc = dev->dev_private;
@@ -758,7 +751,7 @@ static int atmel_hlcdc_dc_drm_remove(struct platform_device *pdev)
 {
 	struct drm_device *ddev = platform_get_drvdata(pdev);
 
-	atmel_hlcdc_dc_connector_unplug_all(ddev);
+	drm_connector_unregister_all(ddev);
 	drm_dev_unregister(ddev);
 	atmel_hlcdc_dc_unload(ddev);
 	drm_dev_unref(ddev);
Signature · 6 lines
2.7.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw
Quoted 6 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Commit 6c87e5c3ec6d ("drm: Rename drm_connector_unplug_all() to drm_connector_unregister_all()") didn't update the Atmel HLCDC driver, causing it to fail to build. While at it, remove unnecessary locking.

Quoted 6 lines
Cc Boris Brezillon <[email protected]>
Cc Alexey Brodkin <[email protected]>
---
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

Nevermind, I see there are patches for this already.

Thierry

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel