ath5k: don't use PCI ID to find the chip revision
authorPavel Roskin <proski@gnu.org>
Thu, 27 Aug 2009 02:30:09 +0000 (22:30 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Aug 2009 18:40:55 +0000 (14:40 -0400)
commit97a81f5c5033cb02ae56dd80ff9c38866c777bd8
treefc88f10b4bc2a167baeb9d1c38022b9612de296e
parent3b3ee43da43aca1cbf4c3651379b2b1492e49dd6
ath5k: don't use PCI ID to find the chip revision

AR5K_SREV is available even if the chip has been put to sleep.  Relying
on the chip register allows binding non-standard PCI IDs by

echo VENDOR_ID PRODUCT_ID >/sys/bus/pci/drivers/ath5k/new_id

without having to specify the driver data as well.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Acked-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/ath5k.h
drivers/net/wireless/ath/ath5k/attach.c
drivers/net/wireless/ath/ath5k/base.c