mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-24 22:36:05 +00:00
wandboard: use CONFIG_IS_ENABLED(SATA) instead of ifdef CONFIG_SATA
Prepare for linking setup_sata only when CONFIG_SATA/CONFIG_SPL_SATA is defined. Signed-off-by: Troy Kisky <troykiskyboundary@gmail.com>
This commit is contained in:
parent
ff286fbc51
commit
32af1c0b3f
1 changed files with 2 additions and 3 deletions
|
@ -352,9 +352,8 @@ static void setup_display(void)
|
||||||
int board_early_init_f(void)
|
int board_early_init_f(void)
|
||||||
{
|
{
|
||||||
setup_iomux_uart();
|
setup_iomux_uart();
|
||||||
#ifdef CONFIG_SATA
|
if (CONFIG_IS_ENABLED(SATA))
|
||||||
setup_sata();
|
setup_sata();
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue