summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/amd-xgbe-phy.c
diff options
context:
space:
mode:
authorTom Lendacky <thomas.lendacky@amd.com>2014-09-07 16:54:41 +0200
committerDavid S. Miller <davem@davemloft.net>2014-09-07 20:21:31 +0200
commita42f5c17131103ec54a71dfb7e6bb7b3704686a1 (patch)
tree5c069232c16a1980abee1a2ecf50f6a1f0fe506c /drivers/net/phy/amd-xgbe-phy.c
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsh... (diff)
downloadlinux-a42f5c17131103ec54a71dfb7e6bb7b3704686a1.tar.xz
linux-a42f5c17131103ec54a71dfb7e6bb7b3704686a1.zip
amd-xgbe-phy: Fix build break for missing declaration
A previous patch inadvertently deleted a declaration in the amd_xgbe_an_tx_training function causing the build to fail. Add the declaration for 'priv' back to the function. Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/amd-xgbe-phy.c')
-rw-r--r--drivers/net/phy/amd-xgbe-phy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/amd-xgbe-phy.c b/drivers/net/phy/amd-xgbe-phy.c
index 4e1f7f734d27..c456559f6e7f 100644
--- a/drivers/net/phy/amd-xgbe-phy.c
+++ b/drivers/net/phy/amd-xgbe-phy.c
@@ -638,6 +638,7 @@ static int amd_xgbe_phy_set_mode(struct phy_device *phydev,
static enum amd_xgbe_phy_an amd_xgbe_an_tx_training(struct phy_device *phydev,
enum amd_xgbe_phy_rx *state)
{
+ struct amd_xgbe_phy_priv *priv = phydev->priv;
int ad_reg, lp_reg, ret;
*state = AMD_XGBE_RX_COMPLETE;