From: Alexey Brodkin Date: Tue, 19 Apr 2016 12:24:53 +0000 (+0300) Subject: drm: rcar-du: Use generic drm_connector_register_all() helper X-Git-Tag: v5.15~13554^2~62^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d63c25e4245aaf9507bf9484b58910bd89c76ef3;p=platform%2Fkernel%2Flinux-starfive.git drm: rcar-du: Use generic drm_connector_register_all() helper Now that a generic drm_connector_register_all() helper exists we may safely substitute it for the driver-specific implementation of connectors plugging in sysfs. Signed-off-by: Alexey Brodkin Cc: Daniel Vetter Cc: David Airlie Cc: linux-renesas-soc@vger.kernel.org Acked-by: Laurent Pinchart Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/1461068693-11260-4-git-send-email-abrodkin@synopsys.com --- diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c index 644db36..0f251dc 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c @@ -361,14 +361,7 @@ static int rcar_du_probe(struct platform_device *pdev) if (ret) goto error; - mutex_lock(&ddev->mode_config.mutex); - drm_for_each_connector(connector, ddev) { - ret = drm_connector_register(connector); - if (ret < 0) - break; - } - mutex_unlock(&ddev->mode_config.mutex); - + ret = drm_connector_register_all(ddev); if (ret < 0) goto error;