]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: net: qe: deselect QE when DM_ETH is enabled
authorMadalin Bucur <madalin.bucur@oss.nxp.com>
Wed, 29 Apr 2020 09:26:59 +0000 (12:26 +0300)
committerPriyanka Jain <priyanka.jain@nxp.com>
Wed, 3 Jun 2020 06:44:27 +0000 (12:14 +0530)
commit3374264df97b23d6023be27f1301421be2e42c13
tree541f0151a85dd1f85925caed06b0ec30f0c35d22
parent03fe5d5116f3793f4d92a15e6d90bb96f0ee0aaf
drivers: net: qe: deselect QE when DM_ETH is enabled

A compilation error appears when QE is compiled with DM_ETH
enabled:

drivers/qe/uec.c: In function 'init_phy':
drivers/qe/uec.c:425:28: error: dereferencing pointer to incomplete type 'struct eth_device'
  uec = (uec_private_t *)dev->priv;
                            ^~
drivers/qe/uec.c: In function 'uec_initialize':
drivers/qe/uec.c:1357:43: error: invalid application of 'sizeof' to incomplete type 'struct eth_device'
  dev = (struct eth_device *)malloc(sizeof(struct eth_device));
                                           ^~~~~~

The patch disables CONFIG_QE when CONFIG_DM_ETH is set.

Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/qe/Kconfig