diff options
author | Joshua Primero <jprimero@nvidia.com> | 2012-07-16 17:09:42 -0700 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-07-17 15:01:01 -0700 |
commit | d56e0d7285cd01e28af9d65e6ca456da96eaefda (patch) | |
tree | e9f42ab37a121831f47fb422389e7db3b3411b41 | |
parent | 944f3f892662eba946d4ff18bf0d575754b3e2b5 (diff) |
ARM: tegra: thermal: Call pm register only once
Fixed bug where pm register was being called multiple times.
Change-Id: I32f7b10547275e0a9bdad1073f9842589180c0f8
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/116203
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/tegra3_thermal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/tegra3_thermal.c b/arch/arm/mach-tegra/tegra3_thermal.c index f36f84ccddf4..e8b5e5df4afc 100644 --- a/arch/arm/mach-tegra/tegra3_thermal.c +++ b/arch/arm/mach-tegra/tegra3_thermal.c @@ -441,7 +441,6 @@ int tegra_thermal_device_register(struct tegra_thermal_device *device) tegra_skin_device_register(device); #endif - register_pm_notifier(&tegra_thermal_nb); return 0; } @@ -477,6 +476,8 @@ int __init tegra_thermal_init(struct tegra_thermal_data *data, throttle_list = tlist; throttle_list_size = tlist_size; + register_pm_notifier(&tegra_thermal_nb); + return 0; } |