rt2x00: rt2800lib: probe RT chipset earlier
authorGabor Juhos <juhosg@openwrt.org>
Sat, 30 Mar 2013 13:53:10 +0000 (14:53 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 1 Apr 2013 20:09:41 +0000 (16:09 -0400)
commitcbafb601cad81de612013fad8daf710ca900015a
treeb210f0e2879c63d8f8d80507d9279f145786d7a7
parent86868b26a192260527fe6bdd421eefbdc8c02ead
rt2x00: rt2800lib: probe RT chipset earlier

The 'rt2800_validate_eeprom' function uses the type of
the RT chipset for verifying the number of RX streams
on RT28x0 devices. However the type of the RT chipset
is not yet detected when the 'rt2800_validate_eeprom'
function is called.

Move the RT chipset detection code into a separate helper
function, and call it before rt2800_validate_eeprom.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c