Skip to content

Commit 109d899

Browse files
sipragakuba-moo
authored andcommitted
net: dsa: realtek: make interface drivers depend on OF
The kernel test robot reported build warnings with a randconfig that built realtek-{smi,mdio} without CONFIG_OF set. Since both interface drivers are using OF and will not probe without, add the corresponding dependency to Kconfig. Link: https://lore.kernel.org/all/202203231233.Xx73Y40o-lkp@intel.com/ Link: https://lore.kernel.org/all/202203231439.ycl0jg50-lkp@intel.com/ Fixes: aac9400 ("net: dsa: realtek: add new mdio interface for drivers") Fixes: 765c39a ("net: dsa: realtek: convert subdrivers into modules") Signed-off-by: Alvin Šipraga <alsi@bang-olufsen.dk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Luiz Angelo Daros de Luca <luizluca@gmail.com> Link: https://lore.kernel.org/r/20220323124225.91763-1-alvin@pqrs.dk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent ffba212 commit 109d899

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/net/dsa/realtek/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ menuconfig NET_DSA_REALTEK
1212
config NET_DSA_REALTEK_MDIO
1313
tristate "Realtek MDIO connected switch driver"
1414
depends on NET_DSA_REALTEK
15+
depends on OF
1516
help
1617
Select to enable support for registering switches configured
1718
through MDIO.
1819

1920
config NET_DSA_REALTEK_SMI
2021
tristate "Realtek SMI connected switch driver"
2122
depends on NET_DSA_REALTEK
23+
depends on OF
2224
help
2325
Select to enable support for registering switches connected
2426
through SMI.

0 commit comments

Comments
 (0)