mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
Conditionally compile fdt_fixup_ethernet()
Fix compiler warnings: On boards that don't have ethernets defined, don't compile fdt_fixup_ethernet().
This commit is contained in:
parent
246d4ae6bc
commit
c01b17dd85
1 changed files with 4 additions and 0 deletions
|
@ -559,6 +559,9 @@ int fdt_fixup_memory(void *blob, u64 start, u64 size)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(CONFIG_HAS_ETH0) || defined(CONFIG_HAS_ETH1) ||\
|
||||||
|
defined(CONFIG_HAS_ETH2) || defined(CONFIG_HAS_ETH3)
|
||||||
|
|
||||||
void fdt_fixup_ethernet(void *fdt, bd_t *bd)
|
void fdt_fixup_ethernet(void *fdt, bd_t *bd)
|
||||||
{
|
{
|
||||||
int node;
|
int node;
|
||||||
|
@ -604,3 +607,4 @@ void fdt_fixup_ethernet(void *fdt, bd_t *bd)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue