summaryrefslogtreecommitdiff
path: root/arch/nds32/lib
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-08-06 13:46:37 +0000
committerMacpaul Lin <macpaul@gmail.com>2012-08-11 00:43:28 +0800
commit11a05fbde76765e4b256b86aa3b82ea3184e3c08 (patch)
treed6ed302d76a33875e47c4566ee847c34bdf30b5d /arch/nds32/lib
parent782ff0cd8704422c355be8fccc06bc62f0cf11b2 (diff)
downloadu-boot-imx-11a05fbde76765e4b256b86aa3b82ea3184e3c08.zip
u-boot-imx-11a05fbde76765e4b256b86aa3b82ea3184e3c08.tar.gz
u-boot-imx-11a05fbde76765e4b256b86aa3b82ea3184e3c08.tar.bz2
nds32: fix unused pmu_init warning
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@gentoo.org>
Diffstat (limited to 'arch/nds32/lib')
-rw-r--r--arch/nds32/lib/board.c2
1 files changed, 2 insertions, 0 deletions
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...