[U-Boot] [PATCH 3/3] nds32: fix unused pmu_init warning
Mike Frysinger
vapier at gentoo.org
Tue Aug 7 01:46:37 CEST 2012
Fixes the build-time warning:
board.c: At top level:
board.c:106: warning: 'pmu_init' defined but not used
This makes the ifdef logic at the call site match the logic at the
function definition.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
arch/nds32/lib/board.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/nds32/lib/board.c b/arch/nds32/lib/board.c
index f5de266..2164a50 100644
--- a/arch/nds32/lib/board.c
+++ b/arch/nds32/lib/board.c
@@ -103,6 +103,7 @@ static int nds32_pci_init(void)
#endif /* CONFIG_CMD_PCI || CONFIG_PCI */
#if defined(CONFIG_PMU) || defined(CONFIG_PCU)
+#ifndef CONFIG_SKIP_LOWLEVEL_INIT
static int pmu_init(void)
{
#if defined(CONFIG_FTPMU010_POWER)
@@ -115,6 +116,7 @@ static int pmu_init(void)
return 0;
}
#endif
+#endif
/*
* Breathe some life into the board...
--
1.7.9.7
More information about the U-Boot
mailing list