Skip to content

Commit

Permalink
PHY: Export phy ethtool helpers
Browse files Browse the repository at this point in the history
We need to export phy_ethtool_gset and phy_ethtool_sset to allow drivers that
use these functions to be built as modules.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Kumar Gala authored and Jeff Garzik committed Jan 23, 2007
1 parent d08d283 commit 9f6d55d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/phy/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ int phy_ethtool_sset(struct phy_device *phydev, struct ethtool_cmd *cmd)

return 0;
}
EXPORT_SYMBOL(phy_ethtool_sset);

int phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd)
{
Expand All @@ -302,7 +303,7 @@ int phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd)

return 0;
}

EXPORT_SYMBOL(phy_ethtool_gset);

/* Note that this function is currently incompatible with the
* PHYCONTROL layer. It changes registers without regard to
Expand Down

0 comments on commit 9f6d55d

Please sign in to comment.