net: dp83640: reinforce locking rules.
authorRichard Cochran <richardcochran@gmail.com>
Mon, 25 May 2015 09:55:44 +0000 (11:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2015 22:21:59 +0000 (18:21 -0400)
commita935865c828c8cd20501f618c69f659a5b6d6a5f
tree3f3527c382a61cb7ab3cfe7d39c30a2d62732667
parent397a253af5031de4a4612210055935309af4472c
net: dp83640: reinforce locking rules.

Callers of the ext_write function are supposed to hold a mutex that
protects the state of the dialed page, but one caller was missing the
lock from the very start, and over time the code has been changed
without following the rule.  This patch cleans up the call sites in
violation of the rule.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83640.c