soc/tegra: pmc: Remove additional check for a valid partition
authorJon Hunter <jonathanh@nvidia.com>
Thu, 11 Feb 2016 18:03:25 +0000 (18:03 +0000)
committerThierry Reding <treding@nvidia.com>
Tue, 5 Apr 2016 13:22:50 +0000 (15:22 +0200)
commitc3ea297260b77a99a2383c1029a381d125f788fe
tree1ba83e7adc05685999649a2c886e787d88151b53
parent0a243bd438ce3d44e03140adf58df4df11dce978
soc/tegra: pmc: Remove additional check for a valid partition

The function tegra_powergate_is_powered() verifies that the partition
being queried is valid and so there is no need to check this before
calling tegra_powergate_is_powered() in powergate_show(). So remove this
extra check.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/pmc.c