diff options
author | David S. Miller <davem@davemloft.net> | 2010-05-03 06:43:40 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-03 07:02:06 +0200 |
commit | 7ef527377b88ff05fb122a47619ea506c631c914 (patch) | |
tree | 2c2e774527d5f591b975834f43e8c6fd12fb38f2 /drivers/net/gianfar.c | |
parent | net: Inline skb_pull() in eth_type_trans(). (diff) | |
parent | net: fix compile error due to double return type in SOCK_DEBUG (diff) | |
download | linux-7ef527377b88ff05fb122a47619ea506c631c914.tar.xz linux-7ef527377b88ff05fb122a47619ea506c631c914.zip |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'drivers/net/gianfar.c')
-rw-r--r-- | drivers/net/gianfar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 0cef967499d3..5267c27e3174 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c @@ -1567,9 +1567,9 @@ static void gfar_halt_nodisable(struct net_device *dev) tempval |= (DMACTRL_GRS | DMACTRL_GTS); gfar_write(®s->dmactrl, tempval); - while (!(gfar_read(®s->ievent) & - (IEVENT_GRSC | IEVENT_GTSC))) - cpu_relax(); + spin_event_timeout(((gfar_read(®s->ievent) & + (IEVENT_GRSC | IEVENT_GTSC)) == + (IEVENT_GRSC | IEVENT_GTSC)), -1, 0); } } |