From patchwork Wed Dec 11 10:34:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 3323811 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 388759F37A for ; Wed, 11 Dec 2013 10:35:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 300C020745 for ; Wed, 11 Dec 2013 10:35:01 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id E57B820729 for ; Wed, 11 Dec 2013 10:34:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 584BDFB573; Wed, 11 Dec 2013 02:34:52 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) by gabe.freedesktop.org (Postfix) with ESMTP id 29EA6FAA25 for ; Wed, 11 Dec 2013 02:34:38 -0800 (PST) Received: by mail-ee0-f53.google.com with SMTP id b57so2795205eek.40 for ; Wed, 11 Dec 2013 02:34:37 -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=TUfCy3J604QRIUmVtzMrdfC3DB7eiR8cxnSK27sHO3A=; b=kEu/VT9+faKl5wkpJ0+rSPqWzUB8ibKv+MSiS7a/UPII19N9th1aE4RN5D1CU7XYUM om/6OTO3CnE/+YZ/Jkdkdzg874P5RUlmEeT1QknjK3jEwAiWKRePPHCyvUFcLrJ3HDzP Qu2TRz4LZmHI1F1W9RfkRmBePU48zOxvXYigg= 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=TUfCy3J604QRIUmVtzMrdfC3DB7eiR8cxnSK27sHO3A=; b=T/TxmNq8Hz0AbM9+uS6TgbwFBAmSZEWhAM/RDy148RiX56yxzSS1S2uRq6JWNloowr GTCn8Sc+S3aazUt502DWjW/E3Hfb4GN9YWxxlxHOqaGKnfM4DuoIGl19jgLuQDZImmcF lW5EqA5oPsgJgwoGMXXb9cWXCPsRESb2zX3NuZJn8pSLkmIBL2wvuI/MY8EVZVBQm6IN 0mAPqY+3gCtrlOkBJbmKZGFN2ou6EEwQWoEICQjCXlExs0sd0qznqfiNJ1Hb6JpIhTxu HM7gF0PDmAh0msNx6We6e0geGSRpdmUsbHyo9dOnkfsBhfuigi4kfUitJX7VmBnXLUjx TAYA== X-Gm-Message-State: ALoCoQksLGQNWGXhuk8Z6zD7PgvWhWsVP90GBO+RyPG1uDk41t2mg35V67y9lgaBsd4Djs/KZhYW X-Received: by 10.15.63.77 with SMTP id l53mr827586eex.89.1386758077413; Wed, 11 Dec 2013 02:34:37 -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 b41sm51932269eef.16.2013.12.11.02.34.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Dec 2013 02:34:36 -0800 (PST) From: Daniel Vetter To: DRI Development Subject: [PATCH 06/50] drm/shmob: call drm_put_dev directly from ->remove hook Date: Wed, 11 Dec 2013 11:34:27 +0100 Message-Id: <1386758111-3446-7-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <1386758111-3446-1-git-send-email-daniel.vetter@ffwll.ch> References: <1386758111-3446-1-git-send-email-daniel.vetter@ffwll.ch> Cc: Daniel Vetter , Laurent Pinchart 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.3 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 We need to chase one pointer here. Cc: Laurent Pinchart Signed-off-by: Daniel Vetter Acked-by: Laurent Pinchart --- drivers/gpu/drm/shmobile/shmob_drm_drv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/shmobile/shmob_drm_drv.c b/drivers/gpu/drm/shmobile/shmob_drm_drv.c index 015551866b4a..c839c9c89efb 100644 --- a/drivers/gpu/drm/shmobile/shmob_drm_drv.c +++ b/drivers/gpu/drm/shmobile/shmob_drm_drv.c @@ -336,7 +336,9 @@ static int shmob_drm_probe(struct platform_device *pdev) static int shmob_drm_remove(struct platform_device *pdev) { - drm_platform_exit(&shmob_drm_driver, pdev); + struct shmob_drm_device *sdev = platform_get_drvdata(pdev); + + drm_put_dev(sdev->ddev); return 0; }