From patchwork Tue Jun 17 14:17:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Guido_Mart=C3=ADnez?= X-Patchwork-Id: 4366331 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 516399F3FF for ; Tue, 17 Jun 2014 14:16:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 61387202EB for ; Tue, 17 Jun 2014 14:16:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3C6A1202F2 for ; Tue, 17 Jun 2014 14:16:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932994AbaFQOQQ (ORCPT ); Tue, 17 Jun 2014 10:16:16 -0400 Received: from mail-yk0-f169.google.com ([209.85.160.169]:37636 "EHLO mail-yk0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932133AbaFQOQP (ORCPT ); Tue, 17 Jun 2014 10:16:15 -0400 Received: by mail-yk0-f169.google.com with SMTP id q200so5334389ykb.0 for ; Tue, 17 Jun 2014 07:16:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=XbS57PvpwUm3qLiff/+qKGQxjNGq66n+EA/DyR+W75w=; b=H6bTjdh0eN6eVHAt2e95A4bom2UckVcizk1xNcub2RrDKn8UozER5JjEkSAvx4fhBz sZq9kKYysP8aulI5Ng/RzLQK4PbVsixCEm0wmYh/2Vx7HEil39BnQeJ53rqmpfFSDccc 7zDcZk8PXm/naLDMZGc5lK/3NYKP5EsFZDcGYxTtk6sUji10OJ0gL1S8h+RVQEzX2Kc4 pq9aRP0W8Edn/s0Q7L8k63oUnnowOyOguBCTW/5Ol7dyFpahPhjDxZFVkvtaVUZMg9Po hmzQBvtgyt+1xe8U04yMo4vtUbpuOnCPeQ87d7Nfnfu3AMnsROKMgbznC1hO/UeyvkIY /udA== X-Gm-Message-State: ALoCoQnYmbANopl/G4+Yanl7yPpei4q5viFIYiDcelp9JYzw9UQV1iwHgkgshB8eLfUlRYN1X0Rb X-Received: by 10.236.220.197 with SMTP id o65mr24189124yhp.125.1403014574568; Tue, 17 Jun 2014 07:16:14 -0700 (PDT) Received: from localhost (host18.190-30-94.telecom.net.ar. [190.30.94.18]) by mx.google.com with ESMTPSA id l46sm1756767yhq.44.2014.06.17.07.16.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jun 2014 07:16:13 -0700 (PDT) From: =?UTF-8?q?Guido=20Mart=C3=ADnez?= To: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Cc: robdclark@gmail.com, =?UTF-8?q?Ezequiel=20Garc=C3=ADa?= , airlied@linux.ie, Daniel Mack , Russell King , Daniel Vetter , =?UTF-8?q?Guido=20Mart=C3=ADnez?= , Subject: [PATCH/RESEND 4/9] drm/tilcdc: tfp410: fix dangling sysfs connector node Date: Tue, 17 Jun 2014 11:17:06 -0300 Message-Id: <1403014631-18072-5-git-send-email-guido@vanguardiasur.com.ar> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1403014631-18072-1-git-send-email-guido@vanguardiasur.com.ar> References: <1402110128-30471-1-git-send-email-guido@vanguardiasur.com.ar> <1403014631-18072-1-git-send-email-guido@vanguardiasur.com.ar> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add a drm_sysfs_connector_remove call when we destroy the panel to make sure the connector node in sysfs gets deleted. This is required for proper unload and re-load of this driver, otherwise we will get a warning about a duplicate filename in sysfs. Signed-off-by: Guido Martínez Cc: #v3.9+ --- drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c b/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c index c38b56b..ce75ac8 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c @@ -167,6 +167,7 @@ struct tfp410_connector { static void tfp410_connector_destroy(struct drm_connector *connector) { struct tfp410_connector *tfp410_connector = to_tfp410_connector(connector); + drm_sysfs_connector_remove(connector); drm_connector_cleanup(connector); kfree(tfp410_connector); }