From patchwork Sat Jun 7 03:02:05 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: 4315061 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 309BFBEEAA for ; Sat, 7 Jun 2014 03:01:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D39EB2020F for ; Sat, 7 Jun 2014 03:01:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 17FDA20127 for ; Sat, 7 Jun 2014 03:01:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752641AbaFGDBz (ORCPT ); Fri, 6 Jun 2014 23:01:55 -0400 Received: from mail-vc0-f181.google.com ([209.85.220.181]:37742 "EHLO mail-vc0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752637AbaFGDBy (ORCPT ); Fri, 6 Jun 2014 23:01:54 -0400 Received: by mail-vc0-f181.google.com with SMTP id hq11so4056634vcb.26 for ; Fri, 06 Jun 2014 20:01:54 -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=R018YCY4h1WZmPg11jhU6ZG3ZxgRtbGB/Bj6GdIfraw=; b=jZty0FAt6BBbR/PL2Zt3sz0HQikOeZ8fbTSOVzx+1mq9E8OLus8jKpkBldrks0JjYL FzYfQAKkicpt7FK/sN+5vW3evvhkU+vO2eZtBWMEuNlgrA+732+vpBAU8iBB+vC8/ULU i+hIjjKo0tKDYIJjdAR/AvqzlJG2Ku+FC1Np6gqYq3hEjr+9OiZ5b2BJJhxLiakTN5Cv B1MtvRppLBkhpR2bwCgU37DRMMcCC6qou4hKVKQ+xxzEAxhByb+52SairokHBT1tRGn1 YKtb80LkJDlvHmvuc9nR2ULoZGy6iT0rIQV3YmRysonjN/WxHbpiqOW9nasAca8U/oIP mqCA== X-Gm-Message-State: ALoCoQkZVVi7XyWpksjjSuV8BnW7qfVd7PsLN46NAa1VlNpNIBXorVbEEf4EeJT+QcPhUfpCsRWV X-Received: by 10.220.69.72 with SMTP id y8mr10025859vci.21.1402110114206; Fri, 06 Jun 2014 20:01:54 -0700 (PDT) Received: from localhost (host18.190-30-94.telecom.net.ar. [190.30.94.18]) by mx.google.com with ESMTPSA id s3sm13935792vew.12.2014.06.06.20.01.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Jun 2014 20:01:53 -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 6/9] drm/tilcdc: fix release order on exit Date: Sat, 7 Jun 2014 00:02:05 -0300 Message-Id: <1402110128-30471-7-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 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: stable@vger.kernel.org --- 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 de34657..0644429 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);