]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sh: r2dplus: Enable board_eth_init only for non-DM case
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 9 May 2020 14:07:18 +0000 (16:07 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Fri, 29 May 2020 17:20:54 +0000 (19:20 +0200)
The board_eth_init() is not used for DM case, enable it only for
the non-DM case. This function should eventually be removed.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
board/renesas/r2dplus/r2dplus.c

index e4d0967c14c2f32b7e5068dd5af17c25380b8a82..0bbdb0e33ae523344fbaee57302d8bda2ca49c47 100644 (file)
@@ -46,7 +46,9 @@ void ide_set_reset(int idereset)
        }
 }
 
+#ifndef CONFIG_DM_ETH
 int board_eth_init(bd_t *bis)
 {
        return pci_eth_init(bis);
 }
+#endif