From: David Daney Date: Fri, 30 Sep 2011 11:51:22 +0000 (+0000) Subject: netdev/phy: Use mdiobus_read() so that proper locks are taken. X-Git-Tag: v3.2-rc1~129^2~182 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fe3264945ee63292cdfb27b6e95bc52c603bb09;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed