From patchwork Sun Nov 3 13:31:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 3133501 Return-Path: X-Original-To: patchwork-dri-devel@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 B52F09F3C4 for ; Sun, 3 Nov 2013 13:32:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0275420103 for ; Sun, 3 Nov 2013 13:32:08 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 286EF200EC for ; Sun, 3 Nov 2013 13:32:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E7A91EE9AA; Sun, 3 Nov 2013 05:31:47 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ee0-f51.google.com (mail-ee0-f51.google.com [74.125.83.51]) by gabe.freedesktop.org (Postfix) with ESMTP id EBE44EE927 for ; Sun, 3 Nov 2013 05:31:15 -0800 (PST) Received: by mail-ee0-f51.google.com with SMTP id t10so585767eei.24 for ; Sun, 03 Nov 2013 05:31:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XBIo/1vr6LTbTtLLTpoWOkYNsHTv/v/ZsTE0BEfoGzg=; b=WaavuQndhiQ4eh84DFCL6JlXdL1WBS6w+lK717K3KNh/6gc4Z3pkNuPl4hK1700pq+ T2MDIWGEPWjH84gFC1nmorc/BYGjaHCNqCbLJ9aNGjISu1Hf+L5R7MqiByJ9syn/liLy g3MOv3AoW9w8a26DV4ha2LbMgJf0T63siG/ls= 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; bh=XBIo/1vr6LTbTtLLTpoWOkYNsHTv/v/ZsTE0BEfoGzg=; b=jfBGa8QScvOpHCaesyY61OKZ8wp3Og+yTTWyg3ZyiKEeV+XVEBxwEGrCusIjKPsgtU 0VcvQUUGznC6C+5Zbn0ZApjBEoPK4pk0K+0rJNdL0eaP/NtjUFG7x01Lyx+CX78DGy5m Cp4YNdjwCEUXbTQaBFcIqLYambLHkLdxcM9x7CWZ2VDi0X6iF8MK0Io2RxZa1KVhhS6+ g1+AMeKj3rl6Dh3ujq/fuveB/0JFAk/21TI1EDVhobyc2+8Xpdh28HkVq4ecxO4RLrme EUGsh8GmiriYnNQCWe1IaDj/X5m+7LmfwlajeSCSUR3kuDEfuOTQqzMkzO80ar1Q74my V9Dw== X-Gm-Message-State: ALoCoQkOZMavwgi4n9PI9CYT7OzDYtny3mQVIJeWthrO5As1c1MlAnSr2N3+6Ed84M8IiB5cwDEZ X-Received: by 10.14.4.1 with SMTP id 1mr13170284eei.21.1383485474254; Sun, 03 Nov 2013 05:31:14 -0800 (PST) Received: from phenom.ffwll.local (178-83-130-250.dynamic.hispeed.ch. [178.83.130.250]) by mx.google.com with ESMTPSA id b42sm33440171eem.9.2013.11.03.05.31.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Nov 2013 05:31:13 -0800 (PST) From: Daniel Vetter To: DRI Development Subject: [PATCH 09/19] drm/msm: call drm_put_dev directly in ->remove Date: Sun, 3 Nov 2013 14:31:15 +0100 Message-Id: <1383485485-8210-10-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 1.8.4.rc3 In-Reply-To: <1383485485-8210-1-git-send-email-daniel.vetter@ffwll.ch> References: <1383485485-8210-1-git-send-email-daniel.vetter@ffwll.ch> Cc: Daniel Vetter X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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 The drvdata pointer is already assigned to something useful. Cc: Rob Clark Signed-off-by: Daniel Vetter --- drivers/gpu/drm/msm/msm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index b3a2f1629041..b92155de0d31 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -747,7 +747,7 @@ static int msm_pdev_probe(struct platform_device *pdev) static int msm_pdev_remove(struct platform_device *pdev) { - drm_platform_exit(&msm_driver, pdev); + drm_put_dev(platform_get_drvdata(pdev)); return 0; }