Skip to content

Commit 7fbd5fc

Browse files
jdelvaredavem330
authored andcommitted
stmmac: dwmac-loongson: Add architecture dependency
Only present the DWMAC_LOONGSON option on architectures where it can actually be used. This follows the same logic as the DWMAC_INTEL option. Signed-off-by: Jean Delvare <[email protected]> Cc: Keguang Zhang <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ccab434 commit 7fbd5fc

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/stmicro/stmmac

1 file changed

+1
-1
lines changed

drivers/net/ethernet/stmicro/stmmac/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ config DWMAC_INTEL
280280
config DWMAC_LOONGSON
281281
tristate "Loongson PCI DWMAC support"
282282
default MACH_LOONGSON64
283-
depends on STMMAC_ETH && PCI
283+
depends on (MACH_LOONGSON64 || COMPILE_TEST) && STMMAC_ETH && PCI
284284
depends on COMMON_CLK
285285
help
286286
This selects the LOONGSON PCI bus support for the stmmac driver,

0 commit comments

Comments
 (0)