Skip to contentSkip to conversation

net: phy: remove stub for mdiobus_register_board_info

PATCH Applied Heiner Kallweit 2 participants 2 messages May 12, 2025 – May 14, 2025

Subsystems (3)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

PATCH 1/1 net: phy: remove stub for mdiobus_register_board_info

The functionality of mdiobus_register_board_info() typically isn't optional for the caller. Therefore remove the stub.

Note: Currently we have only one caller of mdiobus_register_board_info(), in a DSA/PHYLINK context. Therefore CONFIG_MDIO_DEVICE is selected anyway.

---
 include/linux/phy.h | 9 ---------
 1 file changed, 9 deletions(-)
include/linux/phy.h +0 -9
index d62d29202..7c29d346d 100644
@@ -2071,17 +2071,8 @@ struct mdio_board_info {
 	const void	*platform_data;
 };
 
-#if IS_ENABLED(CONFIG_MDIO_DEVICE)
 int mdiobus_register_board_info(const struct mdio_board_info *info,
 				unsigned int n);
-#else
-static inline int mdiobus_register_board_info(const struct mdio_board_info *i,
-					      unsigned int n)
-{
-	return 0;
-}
-#endif
-
 
 /**
  * phy_module_driver() - Helper macro for registering PHY drivers
Signature · 1 line
2.49.0
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Mon, 12 May 2025 22:20:59 +0200 you wrote:

The functionality of mdiobus_register_board_info() typically isn't optional for the caller. Therefore remove the stub.

Note: Currently we have only one caller of mdiobus_register_board_info(), in a DSA/PHYLINK context. Therefore CONFIG_MDIO_DEVICE is selected anyway.

[...]

Here is the summary with links:
- [net-next] net: phy: remove stub for mdiobus_register_board_info

    https://git.kernel.org/netdev/net-next/c/dc75c3ced10c

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html