Skip to content

Commit 0fa2887

Browse files
arndbdavem330
authored andcommitted
net: HNS: fix MDIO dependencies
The newly introduced HNS_MDIO Kconfig symbol selects 'MDIO', but that is the wrong symbol as the code used by this driver is provided by PHYLIB rather than the MDIO driver. Also, there is no need to make this driver user selectable, because it is already selected by all drivers that need it. This changes the Kconfig file to select the correct library, and to make the option silent. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 5b904d3 ("net: add Hisilicon Network Subsystem MDIO support") Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent c577e59 commit 0fa2887

File tree

1 file changed

+2
-3
lines changed
  • drivers/net/ethernet/hisilicon

1 file changed

+2
-3
lines changed

drivers/net/ethernet/hisilicon/Kconfig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ config HIX5HD2_GMAC
2424

2525
config HIP04_ETH
2626
tristate "HISILICON P04 Ethernet support"
27-
select PHYLIB
2827
select MARVELL_PHY
2928
select MFD_SYSCON
3029
select HNS_MDIO
@@ -33,8 +32,8 @@ config HIP04_ETH
3332
want to use the internal ethernet then you should answer Y to this.
3433

3534
config HNS_MDIO
36-
tristate "Hisilicon HNS MDIO device Support"
37-
select MDIO
35+
tristate
36+
select PHYLIB
3837
---help---
3938
This selects the HNS MDIO support. It is needed by HNS_DSAF to access
4039
the PHY

0 commit comments

Comments
 (0)