diff options
author | David Daney <david.daney@cavium.com> | 2011-09-30 15:51:22 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-01 02:54:08 +0400 |
commit | 6fe3264945ee63292cdfb27b6e95bc52c603bb09 (patch) | |
tree | a4bb44b76d6a96aa735b17e1375f4dfc0375ccc0 /drivers/net/phy/icplus.c | |
parent | 8e00f5fbb4ecbc3431fa686cba60cd76a62604af (diff) | |
download | linux-6fe3264945ee63292cdfb27b6e95bc52c603bb09.tar.xz |
netdev/phy: Use mdiobus_read() so that proper locks are taken.
Accesses to the mdio busses must be done with the mdio_lock to ensure
proper operation. Conveniently we have the helper function
mdiobus_read() to do that for us. Lets use it in get_phy_id() instead
of accessing the bus without the lock held.
Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/icplus.c')
0 files changed, 0 insertions, 0 deletions