]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita162c30abf1a436a38d5c25846c0257c0c8a3a44
treeb210f0e2879c63d8f8d80507d9279f145786d7a7
parentf9b99d329e1d6b25a492ab90637f328977233591
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