]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
amd-xgbe-phy: Fix build break for missing declaration
authorTom Lendacky <thomas.lendacky@amd.com>
Sun, 7 Sep 2014 14:54:41 +0000 (09:54 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Sep 2014 18:21:31 +0000 (11:21 -0700)
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>
drivers/net/phy/amd-xgbe-phy.c

index 4e1f7f734d275c5f208fe114f73ca6ac0d3ed9db..c456559f6e7f2ea3ae713e98c93e58148aaa7776 100644 (file)
@@ -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;