diff options
author | Simon Glass <sjg@chromium.org> | 2023-02-22 09:34:24 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-03-02 15:45:10 -0500 |
commit | 9382c8c88ddd6f5174d8e03dee1826c4c9929d9c (patch) | |
tree | 5b7671787c834fb4b37917413813512b6bcf09bd | |
parent | 6fe4d023942e5cabb8240aa1e6d720de456af7b2 (diff) | |
download | u-boot-9382c8c88ddd6f5174d8e03dee1826c4c9929d9c.zip u-boot-9382c8c88ddd6f5174d8e03dee1826c4c9929d9c.tar.gz u-boot-9382c8c88ddd6f5174d8e03dee1826c4c9929d9c.tar.bz2 |
venice: Simplify conditions for network init
The conditions in this code do not align when doing an SPL build with
split config. Use __maybe_unused to avoid needing to be so explicit.
Of course a better solution would be to refactor all of this to avoid
using #ifdef.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | board/gateworks/venice/venice.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/gateworks/venice/venice.c b/board/gateworks/venice/venice.c index c4d86c2..e6fa7eb 100644 --- a/board/gateworks/venice/venice.c +++ b/board/gateworks/venice/venice.c @@ -41,8 +41,7 @@ int board_fit_config_name_match(const char *name) return -1; } -#if (IS_ENABLED(CONFIG_NET)) -static int setup_fec(void) +static int __maybe_unused setup_fec(void) { struct iomuxc_gpr_base_regs *gpr = (struct iomuxc_gpr_base_regs *)IOMUXC_GPR_BASE_ADDR; @@ -58,7 +57,7 @@ static int setup_fec(void) return 0; } -static int setup_eqos(void) +static int __maybe_unused setup_eqos(void) { struct iomuxc_gpr_base_regs *gpr = (struct iomuxc_gpr_base_regs *)IOMUXC_GPR_BASE_ADDR; @@ -71,6 +70,7 @@ static int setup_eqos(void) return set_clk_eqos(ENET_125MHZ); } +#if (IS_ENABLED(CONFIG_NET)) int board_phy_config(struct phy_device *phydev) { unsigned short val; |