]> git.dujemihanovic.xyz Git - u-boot.git/commit
api: Disable api_net when DM is used
authorMichal Simek <michal.simek@xilinx.com>
Mon, 6 Jun 2016 08:58:40 +0000 (10:58 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 22 Jul 2016 12:03:43 +0000 (14:03 +0200)
commit211815784c0e35a274e13054a7966b21098f8a14
tree003831819534888612163e9f660b72c1d765e205
parent72d8d5d773b1882508e0db0fa6d516ced170c923
api: Disable api_net when DM is used

When CONFIG_API is selected with DM_ETH this
error is present:
api/api_net.c: In function 'dev_enum_net':
api/api_net.c:61:35: warning: initialization from incompatible pointer
type
  struct eth_device *eth_current = eth_get_dev();
                                   ^
api/api_net.c:68:39: error: dereferencing pointer to incomplete type
  memcpy(di->di_net.hwaddr, eth_current->enetaddr, 6);
                                       ^
Disable api_net functions when ETH_DM is selected.

Signed-off-by: Chris Johns <chrisj@rtems.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
api/api_net.c