From patchwork Sat Jun 7 03:02:03 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: 4315021 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 79AD39F26E for ; Sat, 7 Jun 2014 03:01:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9BF572020E for ; Sat, 7 Jun 2014 03:01:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CD6DC20127 for ; Sat, 7 Jun 2014 03:01:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752629AbaFGDBk (ORCPT ); Fri, 6 Jun 2014 23:01:40 -0400 Received: from mail-vc0-f178.google.com ([209.85.220.178]:59466 "EHLO mail-vc0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752564AbaFGDBj (ORCPT ); Fri, 6 Jun 2014 23:01:39 -0400 Received: by mail-vc0-f178.google.com with SMTP id ij19so411820vcb.37 for ; Fri, 06 Jun 2014 20:01:39 -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=Es55yKf/YAcJKKnA3m1dQWhj0dIyRM9AWy5vI7Bzm7E=; b=PXVcvuEm7vlHREHkhRU/sNPzMbREWtOxFljsETRNgvgNjy1zg57mEd24udYk09KJF9 uMvMYsMN/VpHcSLIQgLom0ixMPuUbfhHAAdS/Q8aZ3jrVHSqQlYdtyFcGNoIqLGf2j/z XNSX3cqjTsDpQlnBNBxsrQdXjsDmHt6/Hp2LhGhvQdaWrjpNud7a8M1pSVCcz9zQKrLY QM9UlmU7TebK8nLR6d2gpnZjrCJqV0003yDjVt+uvAnc+LlrEqB+fQgSsy2MX7XoRk9j CNFI/2eztFys0cj45De8zif2wGy9Q5k264q3stYpAYL/YqCReIy3w2fC7aT8GRGukQl+ XXfQ== X-Gm-Message-State: ALoCoQnbMoYGOiSnuo2fe54YwM3l/C0Ox/lQnmAIp77ao817D9Ikmr+Z3YkuAV88j47Dx4QadkqD X-Received: by 10.52.92.100 with SMTP id cl4mr8637448vdb.48.1402110098955; Fri, 06 Jun 2014 20:01:38 -0700 (PDT) Received: from localhost (host18.190-30-94.telecom.net.ar. [190.30.94.18]) by mx.google.com with ESMTPSA id xg3sm21229104vdb.23.2014.06.06.20.01.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Jun 2014 20:01:37 -0700 (PDT) From: =?UTF-8?q?Guido=20Mart=C3=ADnez?= To: dri-devel@lists.freedesktop.org, linux-arm-kernel@vger.kernel.org, linux-omap@vger.kernel.org Cc: =?UTF-8?q?Ezequiel=20Garc=C3=ADa?= , David Airlie , Russell King , Rob Clark , Tony Lindgren , Daniel Mack , =?UTF-8?q?Guido=20Mart=C3=ADnez?= , stable@vger.kernel.org Subject: [PATCH 4/9] drm/tilcdc: tfp410: fix dangling sysfs connector node Date: Sat, 7 Jun 2014 00:02:03 -0300 Message-Id: <1402110128-30471-5-git-send-email-guido@vanguardiasur.com.ar> X-Mailer: git-send-email 2.0.0.rc2 In-Reply-To: <1402110128-30471-1-git-send-email-guido@vanguardiasur.com.ar> References: <1402110128-30471-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.5 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: stable@vger.kernel.org --- 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); }