Commit b6989d24 authored by Mao Wenan's avatar Mao Wenan Committed by David S. Miller

net: dsa: LAN9303: select REGMAP when LAN9303 enable

When NET_DSA_SMSC_LAN9303=y and NET_DSA_SMSC_LAN9303_MDIO=y,
below errors can be seen:
drivers/net/dsa/lan9303_mdio.c:87:23: error: REGMAP_ENDIAN_LITTLE
undeclared here (not in a function)
  .reg_format_endian = REGMAP_ENDIAN_LITTLE,
drivers/net/dsa/lan9303_mdio.c:93:3: error: const struct regmap_config
has no member named reg_read
  .reg_read = lan9303_mdio_read,

It should select REGMAP in config NET_DSA_SMSC_LAN9303.

Fixes: dc700583 ("net: dsa: LAN9303: add MDIO managed mode support")
Signed-off-by: default avatarMao Wenan <maowenan@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 11dbb632
...@@ -77,6 +77,7 @@ config NET_DSA_REALTEK_SMI ...@@ -77,6 +77,7 @@ config NET_DSA_REALTEK_SMI
config NET_DSA_SMSC_LAN9303 config NET_DSA_SMSC_LAN9303
tristate tristate
select NET_DSA_TAG_LAN9303 select NET_DSA_TAG_LAN9303
select REGMAP
---help--- ---help---
This enables support for the SMSC/Microchip LAN9303 3 port ethernet This enables support for the SMSC/Microchip LAN9303 3 port ethernet
switch chips. switch chips.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment