rt2x00: Streamline rt2800 eeprom initialisations.
authorGertjan van Wingerde <gwingerde@gmail.com>
Sat, 30 Apr 2011 15:15:13 +0000 (17:15 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 2 May 2011 18:49:17 +0000 (14:49 -0400)
commit9328fdac499b969ec57a195845f168e7c5168ccd
tree976fca4e43892e0869174af7f7d5bc9dcdc826e8
parentd4c838ef5e5c2c7e205adf9e011d2e8bd6eae738
rt2x00: Streamline rt2800 eeprom initialisations.

In rt2800lib.c the rt2800_init_eeprom function the same eeprom
words were read multiple times, due to inefficient ordering of the
eeprom checks.

Reorder the checks so that each EEPROM word only has to be read once.

Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c