summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2013-03-07 01:16:25 +0100
committerStephen Warren <swarren@nvidia.com>2013-03-11 21:29:23 +0100
commit84b808da2dea7020211f1d73d015ff6c3ac207c4 (patch)
tree5771d2bc8996cbc43f8a7b9952459bb4bceb22d3
parentARM: tegra: fix the logical detection of power on sequence of warm boot CPUs (diff)
downloadlinux-84b808da2dea7020211f1d73d015ff6c3ac207c4.tar.xz
linux-84b808da2dea7020211f1d73d015ff6c3ac207c4.zip
ARM: tegra: fix ignored return value of regulator_enable
This fixes: arch/arm/mach-tegra/board-harmony-pcie.c: In function ‘harmony_pcie_init’: arch/arm/mach-tegra/board-harmony-pcie.c:65:18: warning: ignoring return value of ‘regulator_enable’, declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/board-harmony-pcie.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-harmony-pcie.c b/arch/arm/mach-tegra/board-harmony-pcie.c
index 3cdc1bb8254c..d195db09ea32 100644
--- a/arch/arm/mach-tegra/board-harmony-pcie.c
+++ b/arch/arm/mach-tegra/board-harmony-pcie.c
@@ -62,7 +62,11 @@ int __init harmony_pcie_init(void)
goto err_reg;
}
- regulator_enable(regulator);
+ err = regulator_enable(regulator);
+ if (err) {
+ pr_err("%s: regulator_enable failed: %d\n", __func__, err);
+ goto err_en;
+ }
err = tegra_pcie_init(true, true);
if (err) {
@@ -74,6 +78,7 @@ int __init harmony_pcie_init(void)
err_pcie:
regulator_disable(regulator);
+err_en:
regulator_put(regulator);
err_reg:
gpio_free(en_vdd_1v05);