]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3284025168b1c192c8ece41514e8ab245c0a5eac
tree976fca4e43892e0869174af7f7d5bc9dcdc826e8
parentc48e540bf694cde834552406dcfebfefe4457f37
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