Skip to content

Commit 5f79020

Browse files
hkallweitkuba-moo
authored andcommitted
net: phy: fixed_phy: remove two function stubs
Remove stubs for fixed_phy_set_link_update() and fixed_phy_change_carrier() because all callers (actually just one per function) select config symbol FIXED_PHY. Signed-off-by: Heiner Kallweit <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 5adf6f2 commit 5f79020

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

include/linux/phy_fixed.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,6 @@ fixed_phy_register(const struct fixed_phy_status *status,
3737
static inline void fixed_phy_unregister(struct phy_device *phydev)
3838
{
3939
}
40-
static inline int fixed_phy_set_link_update(struct phy_device *phydev,
41-
int (*link_update)(struct net_device *,
42-
struct fixed_phy_status *))
43-
{
44-
return -ENODEV;
45-
}
46-
static inline int fixed_phy_change_carrier(struct net_device *dev, bool new_carrier)
47-
{
48-
return -EINVAL;
49-
}
5040
#endif /* CONFIG_FIXED_PHY */
5141

5242
#endif /* __PHY_FIXED_H */

0 commit comments

Comments
 (0)