From patchwork Mon Oct 19 04:57:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Courbot X-Patchwork-Id: 532145 X-Patchwork-Delegate: twarren@nvidia.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id D86261402D1 for ; Mon, 19 Oct 2015 16:03:41 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7847A4B76D; Mon, 19 Oct 2015 07:03:38 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EDwEbmg0Bv-e; Mon, 19 Oct 2015 07:03:37 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8CAF94B6F4; Mon, 19 Oct 2015 07:03:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C6F324B768 for ; Mon, 19 Oct 2015 07:03:33 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XFPD_XXyLng3 for ; Mon, 19 Oct 2015 07:03:33 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from hqemgate15.nvidia.com (hqemgate15.nvidia.com [216.228.121.64]) by theia.denx.de (Postfix) with ESMTPS id 4612C4B6F4 for ; Mon, 19 Oct 2015 07:03:30 +0200 (CEST) Received: from hqnvupgp08.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com id ; Sun, 18 Oct 2015 21:58:18 -0700 Received: from hqemhub03.nvidia.com ([172.20.12.94]) by hqnvupgp08.nvidia.com (PGP Universal service); Sun, 18 Oct 2015 21:56:57 -0700 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Sun, 18 Oct 2015 21:56:57 -0700 Received: from percival.nvidia.com (172.20.144.16) by hqemhub03.nvidia.com (172.20.150.15) with Microsoft SMTP Server (TLS) id 8.3.342.0; Sun, 18 Oct 2015 21:58:21 -0700 From: Alexandre Courbot To: Tom Warren , Stephen Warren , Thierry Reding Date: Mon, 19 Oct 2015 13:57:01 +0900 Message-ID: <1445230624-30314-2-git-send-email-acourbot@nvidia.com> X-Mailer: git-send-email 2.6.1 In-Reply-To: <1445230624-30314-1-git-send-email-acourbot@nvidia.com> References: <1445230624-30314-1-git-send-email-acourbot@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Cc: linux-tegra@vger.kernel.org, u-boot@lists.denx.de, gnurou@gmail.com Subject: [U-Boot] [PATCH 1/4] ARM: tegra: remove vpr_configured() function X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" There is no justification for this function, especially in exported form. Signed-off-by: Alexandre Courbot --- arch/arm/include/asm/arch-tegra/gpu.h | 6 ------ arch/arm/mach-tegra/gpu.c | 7 +------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/arch/arm/include/asm/arch-tegra/gpu.h b/arch/arm/include/asm/arch-tegra/gpu.h index 52280f40ce31..2fdb2c5049e6 100644 --- a/arch/arm/include/asm/arch-tegra/gpu.h +++ b/arch/arm/include/asm/arch-tegra/gpu.h @@ -11,7 +11,6 @@ #if defined(CONFIG_TEGRA_GPU) void config_gpu(void); -bool gpu_configured(void); #else /* CONFIG_TEGRA_GPU */ @@ -19,11 +18,6 @@ static inline void config_gpu(void) { } -static inline bool gpu_configured(void) -{ - return false; -} - #endif /* CONFIG_TEGRA_GPU */ #if defined(CONFIG_OF_LIBFDT) diff --git a/arch/arm/mach-tegra/gpu.c b/arch/arm/mach-tegra/gpu.c index 4ea046d3e5b6..dc29b79e0126 100644 --- a/arch/arm/mach-tegra/gpu.c +++ b/arch/arm/mach-tegra/gpu.c @@ -41,18 +41,13 @@ void config_gpu(void) _configured = true; } -bool vpr_configured(void) -{ - return _configured; -} - #if defined(CONFIG_OF_LIBFDT) int gpu_enable_node(void *blob, const char *gpupath) { int offset; - if (vpr_configured()) { + if (_configured) { offset = fdt_path_offset(blob, gpupath); if (offset > 0) { fdt_status_okay(blob, offset);