From patchwork Wed Dec 11 10:34:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 3323921 Return-Path: X-Original-To: patchwork-dri-devel@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 3B7FAC0D4B for ; Wed, 11 Dec 2013 10:35:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3B41B20747 for ; Wed, 11 Dec 2013 10:35:40 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 1F6D620729 for ; Wed, 11 Dec 2013 10:35:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8D61E105777 for ; Wed, 11 Dec 2013 02:35:38 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by gabe.freedesktop.org (Postfix) with ESMTP id C7AACFB413 for ; Wed, 11 Dec 2013 02:34:39 -0800 (PST) Received: by mail-ee0-f41.google.com with SMTP id t10so2811720eei.0 for ; Wed, 11 Dec 2013 02:34:38 -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=3eQs3RcYKpwd9HSpXm/uy2mwXgKtsJDirujMgNuDNAc=; b=i8znk/PwhzhhUzX6aoAydpAZJZWiS2eirDdupA8VRQyGAyPMuLQJZ5Hk2u6718QrZC 4rrbold1tuS9tE+O2K9tF+QqtVkcgBI0az/DhGzAbcM9omvBkhbwCRbYHyOgN7IDePcS BgCyYr26AqSNdFUXz2WpIuviYzpQnZgRTPmsg= 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=3eQs3RcYKpwd9HSpXm/uy2mwXgKtsJDirujMgNuDNAc=; b=A5mH3RhTS4VioYOqImlvr6CMi702ddaucsevOag9Q7hQzPZlp8t4J/qJtBH0ZzcT+W ASt+dGvsgcP7o3G8k55KT9egjBZLQcfd/DQXWEGPgLtZUmVdiSatxJS3iZiVGfTIx9Gv XR3oHI8AQEgKILaO7E3IXhs7AN+TlzOj6k4ExWj3ZiAwxbatfSRcafU4wr6ZQAHZvBT6 bkts+LwlmCAcelJCoYBlnBq6bsgroZGQpWx+zuvNlzBReadtGDFrPHp15me+KxfKeXP8 U6rIvGI2sSiBI0EbagDPTzIVa438cuAcpmP2dxqCfwG9EBe5K7PbNX4pfSV3QDDYFpvC PzyA== X-Gm-Message-State: ALoCoQnxttyIXjnN2cONmLZI/eOMlidEz4xxg10h+W/+6XP64zpARJcPoibpkxQHWTeLf97FVIPS X-Received: by 10.14.93.197 with SMTP id l45mr878193eef.53.1386758078668; Wed, 11 Dec 2013 02:34:38 -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.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Dec 2013 02:34:37 -0800 (PST) From: Daniel Vetter To: DRI Development Subject: [PATCH 07/50] drm/armada: directly call drm_put_dev in ->remove Date: Wed, 11 Dec 2013 11:34:28 +0100 Message-Id: <1386758111-3446-8-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 , Russell King 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+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@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 Again no apparent user of the driver data field. Cc: Russell King Signed-off-by: Daniel Vetter --- drivers/gpu/drm/armada/armada_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/armada/armada_drv.c b/drivers/gpu/drm/armada/armada_drv.c index 4f2b28354915..069f64533ac3 100644 --- a/drivers/gpu/drm/armada/armada_drv.c +++ b/drivers/gpu/drm/armada/armada_drv.c @@ -128,6 +128,7 @@ static int armada_drm_load(struct drm_device *dev, unsigned long flags) return -ENOMEM; } + platform_set_drvdata(dev->platformdev, dev); dev->dev_private = priv; /* Get the implementation specific driver data. */ @@ -376,7 +377,7 @@ static int armada_drm_probe(struct platform_device *pdev) static int armada_drm_remove(struct platform_device *pdev) { - drm_platform_exit(&armada_drm_driver, pdev); + drm_put_dev(platform_get_drvdata(pdev)); return 0; }