thermal: soctherm: use zone_enable for DT case
authorSantosh Katvate <skatvate@nvidia.com>
Wed, 2 Dec 2015 09:45:34 +0000 (14:45 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 10 Dec 2015 13:40:13 +0000 (05:40 -0800)
commit8523790c09d97953d7da9b449c0ff1ae3dfe06b0
treed58b15fcdaebb331ae4197b7e0667bc547e2c4b5
parentee8e371716c28694a8f3a24323183f92f33d0e24
thermal: soctherm: use zone_enable for DT case

therm->tz is populated only in non-DT case.
So Use zone_enable to decide if thermal zone is disabled in DT case.

Bug 200157257

Change-Id: I5fd679fe7c4aad76231c82bd8cc7d94c3971cff4
Signed-off-by: Santosh Katvate <skatvate@nvidia.com>
Reviewed-on: http://git-master/r/840993
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
drivers/platform/tegra/tegra_soctherm.c