kernel: 5.10: add missing dependency in kmod-mdio-devres
authorTony Ambardar <itugrok@yahoo.com>
Wed, 17 Mar 2021 07:48:24 +0000 (00:48 -0700)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Fri, 19 Mar 2021 14:02:47 +0000 (14:02 +0000)
Add conditional dependency on kmod-of-mdio due to mdio_devres.c code:
  #if IS_ENABLED(CONFIG_OF_MDIO)
  ...
  EXPORT_SYMBOL(devm_of_mdiobus_register);
  #endif /* CONFIG_OF_MDIO */

Fixes: 95a3741d17 ("kernel: support new mdio_devres.ko module in 5.10")
Reported-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
package/kernel/linux/modules/netdevices.mk

index 7d8bb3413113003122ce11e3eb9eabae99e3ddcb..c9bdeb5a570db09b3e92070e33838557b7f366ec 100644 (file)
@@ -141,7 +141,7 @@ $(eval $(call KernelPackage,mii))
 define KernelPackage/mdio-devres
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   TITLE:=Supports MDIO device registration
-  DEPENDS:=@LINUX_5_10 +kmod-libphy
+  DEPENDS:=@LINUX_5_10 +kmod-libphy PACKAGE_kmod-of-mdio:kmod-of-mdio
   KCONFIG:=CONFIG_MDIO_DEVRES
   HIDDEN:=1
   FILES:=$(LINUX_DIR)/drivers/net/phy/mdio_devres.ko