diff options
| author | Stephen Warren <swarren@nvidia.com> | 2013-03-06 19:16:25 -0500 |
|---|---|---|
| committer | Stephen Warren <swarren@nvidia.com> | 2013-03-11 16:29:23 -0400 |
| commit | 84b808da2dea7020211f1d73d015ff6c3ac207c4 (patch) | |
| tree | 5771d2bc8996cbc43f8a7b9952459bb4bceb22d3 | |
| parent | 2be8951e145eacf2a951288ea8e752e3b21acefd (diff) | |
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.c | 7 |
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) | |||
| 62 | goto err_reg; | 62 | goto err_reg; |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | regulator_enable(regulator); | 65 | err = regulator_enable(regulator); |
| 66 | if (err) { | ||
| 67 | pr_err("%s: regulator_enable failed: %d\n", __func__, err); | ||
| 68 | goto err_en; | ||
| 69 | } | ||
| 66 | 70 | ||
| 67 | err = tegra_pcie_init(true, true); | 71 | err = tegra_pcie_init(true, true); |
| 68 | if (err) { | 72 | if (err) { |
| @@ -74,6 +78,7 @@ int __init harmony_pcie_init(void) | |||
| 74 | 78 | ||
| 75 | err_pcie: | 79 | err_pcie: |
| 76 | regulator_disable(regulator); | 80 | regulator_disable(regulator); |
| 81 | err_en: | ||
| 77 | regulator_put(regulator); | 82 | regulator_put(regulator); |
| 78 | err_reg: | 83 | err_reg: |
| 79 | gpio_free(en_vdd_1v05); | 84 | gpio_free(en_vdd_1v05); |
