]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: phy: remove stub for mdiobus_register_board_info
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 12 May 2025 20:20:59 +0000 (22:20 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 13 May 2025 23:39:45 +0000 (16:39 -0700)
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.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/410a2222-c4e8-45b0-9091-d49674caeb00@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/phy.h

index d62d292024bc2ca7f05ecc3e7d048285eb67327c..7c29d346d4b3c2716f056df294a5abc49dce5b2f 100644 (file)
@@ -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