diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-09-17 10:15:34 -0400 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2011-10-25 10:36:51 -0400 |
commit | 1a64200ec5e93be03e27c3b2fc332e04ae443eb2 (patch) | |
tree | 8a0e9ccbd1df61347e7386f9edf4bf678c4e9081 /arch/arm/mach-pxa/cm-x300.c | |
parent | c149f6c8ae47c35821d93e2bffd5a3a7ca54ad9e (diff) |
ARM: pxa/cm-x300: properly set bt_reset pin
Fix below build warning and properly set bt_reset pin.
CC arch/arm/mach-pxa/cm-x300.o
arch/arm/mach-pxa/cm-x300.c: In function 'cm_x300_init_wi2wi':
arch/arm/mach-pxa/cm-x300.c:779: warning: unused variable 'wlan_en'
arch/arm/mach-pxa/cm-x300.c:795: warning: 'bt_reset' may be used uninitialized in this function
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: <stable@kernel.org>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/cm-x300.c')
-rw-r--r-- | arch/arm/mach-pxa/cm-x300.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c index b6a51340270b..3814e1243294 100644 --- a/arch/arm/mach-pxa/cm-x300.c +++ b/arch/arm/mach-pxa/cm-x300.c | |||
@@ -775,7 +775,6 @@ static struct gpio cm_x300_wi2wi_gpios[] __initdata = { | |||
775 | 775 | ||
776 | static void __init cm_x300_init_wi2wi(void) | 776 | static void __init cm_x300_init_wi2wi(void) |
777 | { | 777 | { |
778 | int bt_reset, wlan_en; | ||
779 | int err; | 778 | int err; |
780 | 779 | ||
781 | if (system_rev < 130) { | 780 | if (system_rev < 130) { |
@@ -791,12 +790,11 @@ static void __init cm_x300_init_wi2wi(void) | |||
791 | } | 790 | } |
792 | 791 | ||
793 | udelay(10); | 792 | udelay(10); |
794 | gpio_set_value(bt_reset, 0); | 793 | gpio_set_value(cm_x300_wi2wi_gpios[1].gpio, 0); |
795 | udelay(10); | 794 | udelay(10); |
796 | gpio_set_value(bt_reset, 1); | 795 | gpio_set_value(cm_x300_wi2wi_gpios[1].gpio, 1); |
797 | 796 | ||
798 | gpio_free(wlan_en); | 797 | gpio_free_array(ARRAY_AND_SIZE(cm_x300_wi2wi_gpios)); |
799 | gpio_free(bt_reset); | ||
800 | } | 798 | } |
801 | 799 | ||
802 | /* MFP */ | 800 | /* MFP */ |