[U-Boot] [PATCH] net/eth.c: bug-fix

Ben Warren
2010-02-12T15:19:14Z

Hello Teh Kok How,

On Thu, Feb 11, 2010 at 10:57 PM, Teh Kok How <khteh@smartbridges.com>wrote:

> No, it is a bug. Board_eth_init() calls pci_eth_init() (include/netdev.h)
> and if ethernet is soc, CONFIG_PCI is not defined, pci_eth_init() returns
> 0.
> This patch allows cpu_eth_init() to be called.
>
> Sorry, still not a bug. The behavior you've described should be handled
internally to your specific board_eth_init() function. If no PCI devices
are found either because none are present or because you didn't specify the
CONFIG_PCI option, you can call cpu_eth_init().

regards,
Ben