arm: tegra: tsensor: Remove tsensor init
Joshua Primero [Wed, 18 Jan 2012 01:03:48 +0000 (17:03 -0800)]
Removed tsensor initialization if external tdiode is
being used for temperature measurements.

bug 928188

Reviewed-on: http://git-master/r/75995

Change-Id: Ifcfd5b4c2b094dcd4fb5386708b332f2a76c272c
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/76819
Reviewed-by: Automatic_Commit_Validation_User

arch/arm/mach-tegra/tegra3_tsensor.c

index 4bcd81d..32fe90b 100644 (file)
@@ -118,12 +118,9 @@ static void tegra3_tsensor_probe_callback(struct tegra_tsensor_data *data)
        if (tegra_thermal_set_device(thermal_device)) /* This should not fail */
                BUG();
 }
-#endif
 
 static struct tegra_tsensor_platform_data tsensor_data = {
-#ifdef CONFIG_TEGRA_INTERNAL_TSENSOR_EDP_SUPPORT
        .probe_callback = tegra3_tsensor_probe_callback,
-#endif
 };
 
 void __init tegra3_tsensor_init(struct tegra_tsensor_pmu_data *data)
@@ -189,4 +186,8 @@ labelSkipPowerOff:
 labelEnd:
        return;
 }
-
+#else
+void __init tegra3_tsensor_init(struct tegra_tsensor_pmu_data *data)
+{
+}
+#endif