soc/tegra: pmc: Avoid usage of uninitialized variable
authorThierry Reding <treding@nvidia.com>
Thu, 9 Jul 2015 07:59:55 +0000 (09:59 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 16 Jul 2015 08:38:20 +0000 (10:38 +0200)
commit95169cd23bfa88003f8be06234dbd65f5737add0
tree97d42d87d2916ec5a47f8a0de80429b7fa3fe94b
parent3a369982b88e5f162fc48b968ad989529db58401
soc/tegra: pmc: Avoid usage of uninitialized variable

Make sure to only drop the reference to the OF node after it's been
successfully obtained.

Fixes: 3568df3d31d6 ("soc: tegra: Add thermal reset (thermtrip) support to PMC")
Cc: <stable@vger.kernel.org> # v4.0+
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/pmc.c