m68knommu: fix FEC driver locking
authorSebastian Siewior <bigeasy@linutronix.de>
Thu, 1 May 2008 04:08:12 +0000 (14:08 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 May 2008 15:08:36 +0000 (08:08 -0700)
commit3b2b74cad34e7a0cf6d4929ee9e8ad4e11a84867
tree363055bb8fb9dcdf04aac3191f6258c798b9a43f
parentc1d9615680c3f43a305b1f66dff0f933d5079273
m68knommu: fix FEC driver locking

It's easy: grab locks before talking to hardware and realease
them afterwards. The one big lock has been splitted into a hw_lock
and mii_lock.

Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/net/fec.c