From patchwork Tue Jun 17 14:17:08 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: 4366381 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0CD71BEEAA for ; Tue, 17 Jun 2014 14:16:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 19A9C202D1 for ; Tue, 17 Jun 2014 14:16:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0B7EE201BC for ; Tue, 17 Jun 2014 14:16:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933014AbaFQOQ3 (ORCPT ); Tue, 17 Jun 2014 10:16:29 -0400 Received: from mail-yk0-f170.google.com ([209.85.160.170]:50585 "EHLO mail-yk0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932996AbaFQOQ1 (ORCPT ); Tue, 17 Jun 2014 10:16:27 -0400 Received: by mail-yk0-f170.google.com with SMTP id q9so5261736ykb.15 for ; Tue, 17 Jun 2014 07:16:27 -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=LWZDxUF0WI08/14hM3GSQrNSRtotFy8txSAPJh8C4ZI=; b=KaOCT8fejbwFyS20Z4TQm73xGZIUPYZD3viFJUUosrD6jxRs7GPPnuEW2JE2JUYVFI VAY93yvTQ9ikWLxkHOGzEqZ+8VTTIe23kNjQjdH3yo/c7n1HgV+L+88qavjgdjyeY8op q1oFq+Z2mwtmgmoKbgRwFbCTrfag9z/Ar8oJlrR6elO2SDlrQe3jxIkdlG97rcw/UQI/ SFnlLXngMFtrduKtQY9Xq/lOFemofGgh4ijdYqDm4pOW27lqpEZGs8AaS6i5pvAfhstT HKar+MM1JAdfer2eVPlr9I4f+fomeSx41OywhKMSbhT8lF8sxOwy3E6nFO7i3w+SCP2J 3o6w== X-Gm-Message-State: ALoCoQlp8A3h0VQrGPc+u4SQ5dHWOi1Sh7eO4lOQrMjS45HeoDzVNnjTZddVlXYrTK+rdznGGUWf X-Received: by 10.236.174.8 with SMTP id w8mr5876412yhl.143.1403014587267; Tue, 17 Jun 2014 07:16:27 -0700 (PDT) Received: from localhost (host18.190-30-94.telecom.net.ar. [190.30.94.18]) by mx.google.com with ESMTPSA id h13sm26033838yhd.35.2014.06.17.07.16.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jun 2014 07:16:26 -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 6/9] drm/tilcdc: fix release order on exit Date: Tue, 17 Jun 2014 11:17:08 -0300 Message-Id: <1403014631-18072-7-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 Unregister resources in the correct order on tilcdc_drm_fini, which is the reverse order they were registered during tilcdc_drm_init. This also means unregistering the driver before releasing its resources. Signed-off-by: Guido Martínez Cc: #v3.9+ --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 490aee7..006a30e 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -629,10 +629,10 @@ static int __init tilcdc_drm_init(void) static void __exit tilcdc_drm_fini(void) { DBG("fini"); - tilcdc_tfp410_fini(); - tilcdc_slave_fini(); - tilcdc_panel_fini(); platform_driver_unregister(&tilcdc_platform_driver); + tilcdc_panel_fini(); + tilcdc_slave_fini(); + tilcdc_tfp410_fini(); } late_initcall(tilcdc_drm_init);