Commit 109d8994 authored by Alvin Šipraga's avatar Alvin Šipraga Committed by Jakub Kicinski

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: aac94001 ("net: dsa: realtek: add new mdio interface for drivers")
Fixes: 765c39a4 ("net: dsa: realtek: convert subdrivers into modules")
Signed-off-by: default avatarAlvin Šipraga <alsi@bang-olufsen.dk>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Acked-by: default avatarLuiz Angelo Daros de Luca <luizluca@gmail.com>
Link: https://lore.kernel.org/r/20220323124225.91763-1-alvin@pqrs.dkSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent ffba2123
...@@ -12,6 +12,7 @@ menuconfig NET_DSA_REALTEK ...@@ -12,6 +12,7 @@ menuconfig NET_DSA_REALTEK
config NET_DSA_REALTEK_MDIO config NET_DSA_REALTEK_MDIO
tristate "Realtek MDIO connected switch driver" tristate "Realtek MDIO connected switch driver"
depends on NET_DSA_REALTEK depends on NET_DSA_REALTEK
depends on OF
help help
Select to enable support for registering switches configured Select to enable support for registering switches configured
through MDIO. through MDIO.
...@@ -19,6 +20,7 @@ config NET_DSA_REALTEK_MDIO ...@@ -19,6 +20,7 @@ config NET_DSA_REALTEK_MDIO
config NET_DSA_REALTEK_SMI config NET_DSA_REALTEK_SMI
tristate "Realtek SMI connected switch driver" tristate "Realtek SMI connected switch driver"
depends on NET_DSA_REALTEK depends on NET_DSA_REALTEK
depends on OF
help help
Select to enable support for registering switches connected Select to enable support for registering switches connected
through SMI. through SMI.
......
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