rt2x00: Cleanup indirect register access
authorIvo van Doorn <ivdoorn@gmail.com>
Mon, 10 Nov 2008 18:41:40 +0000 (19:41 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 25 Nov 2008 21:32:53 +0000 (16:32 -0500)
commitc9c3b1a5deac4297503145840fffcd122b253db5
tree7d5e0cf6510c1687ef6b18d32ba9009a5692fbfd
parent9764f3f9c3700620f9f8a1f9af57f58758e835da
rt2x00: Cleanup indirect register access

All code which accessed indirect registers was similar
in respect to the for-loop, the given timeout, etc.
Move it into a seperate function, which for PCI drivers
can be moved into rt2x00pci.

This allows us to cleanup the cleanup the code further
by removing the goto statementsand making the codepath
look a bit nicer.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2400pci.c
drivers/net/wireless/rt2x00/rt2500pci.c
drivers/net/wireless/rt2x00/rt2500usb.c
drivers/net/wireless/rt2x00/rt2x00pci.c
drivers/net/wireless/rt2x00/rt2x00pci.h
drivers/net/wireless/rt2x00/rt61pci.c
drivers/net/wireless/rt2x00/rt73usb.c