hwmon: tegra: tsensor:Fix compilation error
Nagaraja Kolur [Fri, 3 Aug 2012 00:58:16 +0000 (17:58 -0700)]
Bug 1024886

Resolved compilation error for unused code.

Signed-off-by: Nagaraja Kolur <nkolur@nvidia.com>

Change-Id: I9167d8129a9cba0fc6cb203180e07192d66db439
Reviewed-on: http://git-master/r/120581
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nagaraj Kolur <nkolur@nvidia.com>
Tested-by: Nagaraj Kolur <nkolur@nvidia.com>
Reviewed-by: Vijaya Bhaskar <vbhaskar@nvidia.com>
Reviewed-by: Wahed Syed <wsyed@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

drivers/hwmon/tegra-tsensor.c

index e9ade73..c5b16fe 100644 (file)
@@ -1961,6 +1961,8 @@ static int __devexit tegra_tsensor_remove(struct platform_device *pdev)
        return 0;
 }
 
+#ifdef CONFIG_PM
+
 static void save_tsensor_regs(struct tegra_tsensor_data *data)
 {
        int i;
@@ -1987,7 +1989,7 @@ static void restore_tsensor_regs(struct tegra_tsensor_data *data)
        }
 }
 
-#ifdef CONFIG_PM
+
 static int tsensor_suspend(struct platform_device *pdev,
        pm_message_t state)
 {