From: Moritz Fischer Date: Fri, 31 Aug 2018 20:30:54 +0000 (-0700) Subject: net: nixge: Fix Kconfig warning with OF_MDIO X-Git-Tag: v4.20-rc1~27^2~455 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1914104fc6f84c1fa9947f3f304a34816d1fabee;p=thirdparty%2Flinux.git net: nixge: Fix Kconfig warning with OF_MDIO Fix Kconfig warning with OF_MDIO where OF_MDIO was selected unconditionally instead of only when OF is actually enabled. Fixes 7e8d5755be0e ("net: nixge: Add support for 64-bit platforms") Suggested-by: Andrew Lunn Signed-off-by: Moritz Fischer Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ni/Kconfig b/drivers/net/ethernet/ni/Kconfig index 04e315704f71c..c73978474c4b3 100644 --- a/drivers/net/ethernet/ni/Kconfig +++ b/drivers/net/ethernet/ni/Kconfig @@ -20,7 +20,7 @@ config NI_XGE_MANAGEMENT_ENET tristate "National Instruments XGE management enet support" depends on HAS_IOMEM && HAS_DMA select PHYLIB - select OF_MDIO + select OF_MDIO if OF help Simple LAN device for debug or management purposes. Can support either 10G or 1G PHYs via SFP+ ports.