Skip to content

Commit d81210c

Browse files
hkallweitdavem330
authored andcommitted
net: phy: don't export gen10g_read_status
gen10g_read_status is deprecated, therefore stop exporting it. We don't want to encourage anybody to use it. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent c5e91d3 commit d81210c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

drivers/net/phy/phy-c45.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,15 +499,14 @@ int gen10g_config_aneg(struct phy_device *phydev)
499499
}
500500
EXPORT_SYMBOL_GPL(gen10g_config_aneg);
501501

502-
int gen10g_read_status(struct phy_device *phydev)
502+
static int gen10g_read_status(struct phy_device *phydev)
503503
{
504504
/* For now just lie and say it's 10G all the time */
505505
phydev->speed = SPEED_10000;
506506
phydev->duplex = DUPLEX_FULL;
507507

508508
return genphy_c45_read_link(phydev);
509509
}
510-
EXPORT_SYMBOL_GPL(gen10g_read_status);
511510

512511
int gen10g_no_soft_reset(struct phy_device *phydev)
513512
{

include/linux/phy.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,6 @@ int genphy_c45_read_status(struct phy_device *phydev);
11191119

11201120
/* The gen10g_* functions are the old Clause 45 stub */
11211121
int gen10g_config_aneg(struct phy_device *phydev);
1122-
int gen10g_read_status(struct phy_device *phydev);
11231122
int gen10g_no_soft_reset(struct phy_device *phydev);
11241123

11251124
static inline int phy_read_status(struct phy_device *phydev)

0 commit comments

Comments
 (0)