From: Madalin Bucur Date: Wed, 29 Apr 2020 09:26:59 +0000 (+0300) Subject: drivers: net: qe: deselect QE when DM_ETH is enabled X-Git-Tag: v2020.07-rc4~2^2~23 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3374264df97b23d6023be27f1301421be2e42c13;p=oweals%2Fu-boot.git 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 Reviewed-by: Priyanka Jain --- diff --git a/drivers/qe/Kconfig b/drivers/qe/Kconfig index 864b36b822..44c9f010bd 100644 --- a/drivers/qe/Kconfig +++ b/drivers/qe/Kconfig @@ -3,7 +3,7 @@ # config QE bool "Enable support for QUICC Engine" - depends on PPC + depends on PPC && !DM_ETH default y if ARCH_T1040 || ARCH_T1042 || ARCH_T1024 || ARCH_P1021 \ || ARCH_P1025 help