mvneta: Fix hang when loading the mvneta driver
authorArnaud Patard \(Rtp\) <arnaud.patard@rtp-net.org>
Mon, 29 Jul 2013 19:56:47 +0000 (21:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2013 02:32:36 +0000 (19:32 -0700)
When the mvneta driver is compiled, it'll be loaded with clocks disabled.
This implies that the clocks should be enabled again before any register
access or it'll hang.

To fix it:
- enable clock earlier
- move timer callback after setting timer.data

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found