mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
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>
This commit is contained in:
parent
782ff0cd87
commit
11a05fbde7
1 changed files with 2 additions and 0 deletions
|
@ -103,6 +103,7 @@ static int nds32_pci_init(void)
|
||||||
#endif /* CONFIG_CMD_PCI || CONFIG_PCI */
|
#endif /* CONFIG_CMD_PCI || CONFIG_PCI */
|
||||||
|
|
||||||
#if defined(CONFIG_PMU) || defined(CONFIG_PCU)
|
#if defined(CONFIG_PMU) || defined(CONFIG_PCU)
|
||||||
|
#ifndef CONFIG_SKIP_LOWLEVEL_INIT
|
||||||
static int pmu_init(void)
|
static int pmu_init(void)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_FTPMU010_POWER)
|
#if defined(CONFIG_FTPMU010_POWER)
|
||||||
|
@ -115,6 +116,7 @@ static int pmu_init(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Breathe some life into the board...
|
* Breathe some life into the board...
|
||||||
|
|
Loading…
Reference in a new issue