From patchwork Wed Aug 14 13:07:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Herrmann X-Patchwork-Id: 2844483 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 65233BF546 for ; Wed, 14 Aug 2013 13:09:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5ED8E205E1 for ; Wed, 14 Aug 2013 13:09:01 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 4B75F205DD for ; Wed, 14 Aug 2013 13:09:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5036BE8022 for ; Wed, 14 Aug 2013 06:09:00 -0700 (PDT) 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 B6D18E671A for ; Wed, 14 Aug 2013 06:07:39 -0700 (PDT) Received: by mail-ee0-f51.google.com with SMTP id c1so4792485eek.38 for ; Wed, 14 Aug 2013 06:07:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4Q9d8awMNh+iNDt9L0JUc9FXZFINC8uCRE0fepGkVlg=; b=TAy4bw6IYFqwCO/g9NAj+iEorF9dd7c09AhFIVE/izbmANCt63A86cjkQwMU8a6Ggi e6hnSBKUGuMXrl3mitxvyhd7XTksa7YnUZJPHXOpvAfVZLfN2r14nv3tv7XAOY9zzdGf UHDcZuTnaLhl98TpyV5Co7DdKCcrBH8mB/bprAQc5kFXVBDuwwzFqr4CeuyrllSBDX9P elNS8cosx4v7JixeeYxR6p14tQ07N/Kg8ojU6JhivnTTo3f2tXzgqflmAIZXTyM09Hzh fBrqhmgcBipvnN9n0E9dyPunWTElkWeFMWvDCSbUJnMKZyfTJcUjaNbcW063NfypiPc2 IoYA== X-Received: by 10.15.41.77 with SMTP id r53mr3083328eev.64.1376485658930; Wed, 14 Aug 2013 06:07:38 -0700 (PDT) Received: from localhost.localdomain (stgt-5f719d8b.pool.mediaWays.net. [95.113.157.139]) by mx.google.com with ESMTPSA id bn13sm75030115eeb.11.2013.08.14.06.07.37 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:07:38 -0700 (PDT) From: David Herrmann To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/7] drm/ast: remove unused driver_private access Date: Wed, 14 Aug 2013 15:07:14 +0200 Message-Id: <1376485640-711-2-git-send-email-dh.herrmann@gmail.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1376485640-711-1-git-send-email-dh.herrmann@gmail.com> References: <1376485640-711-1-git-send-email-dh.herrmann@gmail.com> 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=-6.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 gem_bo->driver_private is never read by ast nor DRM core. No need to set it. Besides, drm core clears it during setup, anyway. Cc: Dave Airlie Signed-off-by: David Herrmann --- drivers/gpu/drm/ast/ast_ttm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/ast/ast_ttm.c b/drivers/gpu/drm/ast/ast_ttm.c index 98d6708..cf1c833 100644 --- a/drivers/gpu/drm/ast/ast_ttm.c +++ b/drivers/gpu/drm/ast/ast_ttm.c @@ -321,7 +321,6 @@ int ast_bo_create(struct drm_device *dev, int size, int align, return ret; } - astbo->gem.driver_private = NULL; astbo->bo.bdev = &ast->ttm.bdev; ast_ttm_placement(astbo, TTM_PL_FLAG_VRAM | TTM_PL_FLAG_SYSTEM);