summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMao Wenan <maowenan@huawei.com>2019-10-26 10:21:39 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-31 16:35:29 +0100
commitdfcae4154adc19af402fc843c3e2bb2713e4e82d (patch)
tree37793013b884ee400de5ca631efe03cd54a9a8ad /drivers
parent9287cc6123d55a019f03eb2d84aab7a2a15ee1f6 (diff)
downloadlinux-stable-dfcae4154adc19af402fc843c3e2bb2713e4e82d.tar.gz
linux-stable-dfcae4154adc19af402fc843c3e2bb2713e4e82d.tar.bz2
linux-stable-dfcae4154adc19af402fc843c3e2bb2713e4e82d.zip
net: dsa: LAN9303: select REGMAP when LAN9303 enable
[ Upstream commit b6989d248a2d13f02895bae1a9321b3bbccc0283 ] 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: dc7005831523 ("net: dsa: LAN9303: add MDIO managed mode support") Signed-off-by: Mao Wenan <maowenan@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/dsa/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/Kconfig b/drivers/net/dsa/Kconfig
index d3ce1e4cb4d3..dbfb6ad80fac 100644
--- a/drivers/net/dsa/Kconfig
+++ b/drivers/net/dsa/Kconfig
@@ -66,6 +66,7 @@ config NET_DSA_REALTEK_SMI
config NET_DSA_SMSC_LAN9303
tristate
select NET_DSA_TAG_LAN9303
+ select REGMAP
---help---
This enables support for the SMSC/Microchip LAN9303 3 port ethernet
switch chips.