]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell: Fix build.
authorDavid S. Miller <davem@davemloft.net>
Wed, 26 Sep 2018 05:41:31 +0000 (22:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Sep 2018 05:41:31 +0000 (22:41 -0700)
commit2c81082b355b29e66032cdb5b4d864d9a43441e1
tree5c286f351978698aac77e1c417bf584c82132b5d
parent3155138d99e0a1daa6b01b92634a200632fa7206
net: phy: marvell: Fix build.

Local variable 'autoneg' doesn't even exist:

drivers/net/phy/marvell.c: In function 'm88e1121_config_aneg':
drivers/net/phy/marvell.c:468:25: error: 'autoneg' undeclared (first use in this function); did you mean 'put_net'?
  if (phydev->autoneg != autoneg || changed) {
                         ^~~~~~~

Fixes: 84d7d7d94488 ("net: phy: marvell: Avoid unnecessary soft reset")
Reported-by:Vakul Garg <vakul.garg@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c