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>
This commit is contained in:
Родитель
2be8951e14
Коммит
84b808da2d
|
@ -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);
|
err = tegra_pcie_init(true, true);
|
||||||
if (err) {
|
if (err) {
|
||||||
|
@ -74,6 +78,7 @@ int __init harmony_pcie_init(void)
|
||||||
|
|
||||||
err_pcie:
|
err_pcie:
|
||||||
regulator_disable(regulator);
|
regulator_disable(regulator);
|
||||||
|
err_en:
|
||||||
regulator_put(regulator);
|
regulator_put(regulator);
|
||||||
err_reg:
|
err_reg:
|
||||||
gpio_free(en_vdd_1v05);
|
gpio_free(en_vdd_1v05);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче