drivers: net: e1000: with DM_ETH needs DM_PCI too
authorMadalin Bucur <madalin.bucur@oss.nxp.com>
Wed, 29 Apr 2020 05:26:17 +0000 (08:26 +0300)
committerPriyanka Jain <priyanka.jain@nxp.com>
Wed, 3 Jun 2020 06:44:27 +0000 (12:14 +0530)
Compilation error occur when DM_ETH is enabled without DM_PCI.

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

index 0b08de0ef4583d17548a430d5ca0128ba0a3f90c..bb23f73fc2348af794cfc970ae49c022e1e8d944 100644 (file)
@@ -162,6 +162,7 @@ config DWC_ETH_QOS
 
 config E1000
        bool "Intel PRO/1000 Gigabit Ethernet support"
 
 config E1000
        bool "Intel PRO/1000 Gigabit Ethernet support"
+       depends on (DM_ETH && DM_PCI) || !DM_ETH
        help
          This driver supports Intel(R) PRO/1000 gigabit ethernet family of
          adapters.  For more information on how to identify your adapter, go
        help
          This driver supports Intel(R) PRO/1000 gigabit ethernet family of
          adapters.  For more information on how to identify your adapter, go