ath9k_hw: Fix number of GPIO pins for AR9287/9300
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Fri, 30 Sep 2011 06:01:27 +0000 (11:01 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:42:44 +0000 (09:42 -0800)
commitcfd45841b2cd3e91e57b613b32419dddecf9cdc7
tree5c17a1ee3e525b203457531097bd891bd19d09b5
parentb6fef1a36bb9e662e6f02e46f44d5085184f18b5
ath9k_hw: Fix number of GPIO pins for AR9287/9300

commit 6321eb0977b011ac61dfca36e7c69b2c4325b104 upstream.

this patch fixes the assumption of maximum number of GPIO pins present
in AR9287/AR9300. this fix is essential as we might encounter some
functionality issues involved in accessing the status of GPIO pins which
are all incorrectly assumed to be not within the range of max_num_gpio
of AR9300/AR9287 chipsets

Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath9k/hw.c