dsa: mv88e6xxx: Use mv88e6xx_wait in mv88e6xxx_update()
authorAndrew Lunn <andrew@lunn.ch>
Thu, 18 Aug 2016 22:01:56 +0000 (00:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Aug 2016 00:14:07 +0000 (17:14 -0700)
commit0f02b4f75245c9f11f38ed983a2f5e21fd780e80
tree76e5686496f0596c937cd1777618af83b2232f47
parent6441e6695acfce66499c186c591f319a3b125de7
dsa: mv88e6xxx: Use mv88e6xx_wait in mv88e6xxx_update()

Now that mv88e6xx_wait() iterated on a counter than a fixed time
interval, it implements the same mechanism as mv88e6xxx_update() uses.
So use it in mv88e6xx_wait().

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c