From: Chris Wilson Date: Tue, 21 Jun 2016 09:28:02 +0000 (+0100) Subject: drm/vc4: Remove open-coded drm_connector_register_all() X-Git-Tag: v4.8-rc1~62^2~34^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=398e97994f6d2d7165a4aa53c1a0903a2a7d3111;p=platform%2Fkernel%2Flinux-exynos.git drm/vc4: Remove open-coded drm_connector_register_all() drm_dev_register() will now register all known connectors, so we no longer have to do so manually. Signed-off-by: Chris Wilson Cc: Eric Anholt Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/1466501283-19976-3-git-send-email-chris@chris-wilson.co.uk --- diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c index 58b8fc0..0d86652 100644 --- a/drivers/gpu/drm/vc4/vc4_drv.c +++ b/drivers/gpu/drm/vc4/vc4_drv.c @@ -211,22 +211,10 @@ static int vc4_drm_bind(struct device *dev) if (ret < 0) goto unbind_all; - /* Connector registration has to occur after DRM device - * registration, because it creates sysfs entries based on the - * DRM device. - */ - list_for_each_entry(connector, &drm->mode_config.connector_list, head) { - ret = drm_connector_register(connector); - if (ret) - goto unregister; - } - vc4_kms_load(drm); return 0; -unregister: - drm_dev_unregister(drm); unbind_all: component_unbind_all(dev, drm); gem_destroy: