]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
ARM: tegra: remove vpr_configured() function
authorAlexandre Courbot <acourbot@nvidia.com>
Mon, 19 Oct 2015 04:57:01 +0000 (13:57 +0900)
committerTom Warren <twarren@nvidia.com>
Thu, 12 Nov 2015 16:21:07 +0000 (09:21 -0700)
There is no justification for this function, especially in exported
form.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/include/asm/arch-tegra/gpu.h
arch/arm/mach-tegra/gpu.c

index 52280f40ce313c1414e0df2ce325da02c46e763d..2fdb2c5049e6c185831297f8247d011d20b49f4b 100644 (file)
@@ -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)
index 4ea046d3e5b654d61c47d05a4f58c01a3389f837..dc29b79e0126938bb94a4b953dd168d9091c389a 100644 (file)
@@ -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);