Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

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>

authored by

Heiner Kallweit and committed by
Jakub Kicinski
dc75c3ce ae605349

-9
-9
include/linux/phy.h
··· 2071 2071 const void *platform_data; 2072 2072 }; 2073 2073 2074 - #if IS_ENABLED(CONFIG_MDIO_DEVICE) 2075 2074 int mdiobus_register_board_info(const struct mdio_board_info *info, 2076 2075 unsigned int n); 2077 - #else 2078 - static inline int mdiobus_register_board_info(const struct mdio_board_info *i, 2079 - unsigned int n) 2080 - { 2081 - return 0; 2082 - } 2083 - #endif 2084 - 2085 2076 2086 2077 /** 2087 2078 * phy_module_driver() - Helper macro for registering PHY drivers