summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshwin Joshi <asjoshi@nvidia.com>2014-01-07 13:18:07 +0530
committerSandeep Trasi <strasi@nvidia.com>2014-01-09 00:54:41 -0800
commit679bbf587b4360e855cc1dedd95fb7667dd8a0a5 (patch)
treeb36653cd0a8928c91df9b07883748c2174b5ffc7
parent988a76c3c6065ee2c0d7290586f10b5932e20f89 (diff)
ARM: tegra12: dvfs: Init core caps conditionally
Initialize core caps if CONFIG_TEGRA_CORE_CAP is enabled. Bug 1410210 Change-Id: I04d0af63e62690a77e309435a618c303b264b840 Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com> Reviewed-on: http://git-master/r/352593 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/tegra12_dvfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/tegra12_dvfs.c b/arch/arm/mach-tegra/tegra12_dvfs.c
index 7c69350ed9a9..2a03b7165bc5 100644
--- a/arch/arm/mach-tegra/tegra12_dvfs.c
+++ b/arch/arm/mach-tegra/tegra12_dvfs.c
@@ -1219,6 +1219,8 @@ int tegra_dvfs_rail_post_enable(struct dvfs_rail *rail)
return 0;
}
+#ifdef CONFIG_TEGRA_CORE_CAP
+
/* Core voltage and bus cap object and tables */
static struct kobject *cap_kobj;
static struct kobject *gpu_kobj;
@@ -1344,3 +1346,5 @@ static int __init tegra12_dvfs_init_core_cap(void)
return 0;
}
late_initcall(tegra12_dvfs_init_core_cap);
+
+#endif