From patchwork Tue Jun 21 09:28:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Wilson X-Patchwork-Id: 9190041 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 19F146075E for ; Tue, 21 Jun 2016 09:28:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09B6A28047 for ; Tue, 21 Jun 2016 09:28:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2C4528066; Tue, 21 Jun 2016 09:28:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6EFCD28047 for ; Tue, 21 Jun 2016 09:28:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 257526E5F6; Tue, 21 Jun 2016 09:28:17 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lb0-x242.google.com (mail-lb0-x242.google.com [IPv6:2a00:1450:4010:c04::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 579CE6E0E9 for ; Tue, 21 Jun 2016 09:28:14 +0000 (UTC) Received: by mail-lb0-x242.google.com with SMTP id w10so1147533lbo.1 for ; Tue, 21 Jun 2016 02:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=06F9WWfPmZUe50TOSrRMI0C/NEsrA39w44O4Qqd4/Js=; b=Sb8BKUobub6mGpuxmkp9t3/y2rX7HOsTFke5h9yLAT0rlkuqKAUoG12nF/FFrxWHoX 3+7MiCsTN1OY5ZJt/XYONZXmLMnPv59J8YLXz74dbWAV5NoYKlGGBV6JEDCBTv6X33cd Q2YPCxTDUKHP00LWAs4hP2R3ZPZ57immJ/c3/Q0XnZZ/LD/GYklmckMVxdKQa3Qqqdtt X/KjdI94JerK3wWLw5G9ZsU02PLqPxwqRwWjm1qISBptVLaV8aQb/u0JejRYHX9XIAIw zu9/8er6JbF893KLXak9LldU79j/8D3CdptyIZk9m70zrKD9JjPKeSCw9DcS4XQXol4y 9vnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=06F9WWfPmZUe50TOSrRMI0C/NEsrA39w44O4Qqd4/Js=; b=NdJeHyV2qZXFg83pWmmxrZXSX5GecE76KiQ3aZuby+X9tZ8IGSL5kb4D32bUHUUd1y G9mOMpNBvdm+TJS4pag4I4ykGv1kAOe1AQvmoU9xaFHCobtRDJVRZf71/hRakjsClfHe kk8MsJQ61gmbwmgKr7PmcjrEFB98wuk0tw0Czptg3uuFVYfeuGkteAY8BC/Gx+SwuFWj LEXLm0l2n/IPARPNwdzP6LmwLCE5sEeAL36UKBWoUV7uI3ctKRWQfvosG7hNhz6INSMF 4nKsmXfLtIfXgr14Nop1n0qELUyoaF/fj3ewk2NoXoGwYiFPqaSxxSq80BV0YR0KrfIS 8/mQ== X-Gm-Message-State: ALyK8tJubpMKXI7Duuk6UOTfTCu9BS1p0HW3b7l9qPQ7+rJIlXfLDRzJv6NnCfrHajWl3g== X-Received: by 10.194.136.72 with SMTP id py8mr18423159wjb.126.1466501292167; Tue, 21 Jun 2016 02:28:12 -0700 (PDT) Received: from haswell.alporthouse.com ([78.156.65.138]) by smtp.gmail.com with ESMTPSA id u64sm2050460wmd.8.2016.06.21.02.28.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jun 2016 02:28:11 -0700 (PDT) From: Chris Wilson To: dri-devel@lists.freedesktop.org Subject: [PATCH 2/3] drm/vc4: Remove open-coded drm_connector_register_all() Date: Tue, 21 Jun 2016 10:28:02 +0100 Message-Id: <1466501283-19976-3-git-send-email-chris@chris-wilson.co.uk> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1466501283-19976-1-git-send-email-chris@chris-wilson.co.uk> References: <1466501283-19976-1-git-send-email-chris@chris-wilson.co.uk> Cc: Daniel Vetter X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/gpu/drm/vc4/vc4_drv.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c index 98cf2c4d622e..1cd6b7b36241 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: