tmspci: fix request_irq race
authorMeelis Roos <mroos@linux.ee>
Wed, 4 Mar 2009 04:59:41 +0000 (04:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Mar 2009 03:24:27 +0000 (19:24 -0800)
commit87786945fe4b0e60e8f1db62d5ee8a3cec539a67
tree3175ca2f79ebb1c40498907273dc09a82548db37
parenta883bf564ea555447a76682bb2d8d4bc92e23e0e
tmspci: fix request_irq race

Currently, tmspci tokenring driver crashes on device initialization
because it requests its irq before initializing corresponding data
structures. Fix this by moving request_irq call to a safer place.

Signed-off-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tokenring/tmspci.c