projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ARM: tegra: fix ignored return value of regulator_enable
[deliverable/linux.git]
/
arch
/
arm
/
mach-tegra
/
board-harmony-pcie.c
diff --git
a/arch/arm/mach-tegra/board-harmony-pcie.c
b/arch/arm/mach-tegra/board-harmony-pcie.c
index 3cdc1bb8254c6764c453fb978f748aae6d8f526a..d195db09ea32660f438eddb74cbc5f1cc2f5b751 100644
(file)
--- 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;
}
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) {
err = tegra_pcie_init(true, true);
if (err) {
@@
-74,6
+78,7
@@
int __init harmony_pcie_init(void)
err_pcie:
regulator_disable(regulator);
err_pcie:
regulator_disable(regulator);
+err_en:
regulator_put(regulator);
err_reg:
gpio_free(en_vdd_1v05);
regulator_put(regulator);
err_reg:
gpio_free(en_vdd_1v05);
This page took
0.023788 seconds
and
5
git commands to generate.