Skip to content

Commit

Permalink
ARM: pxa/cm-x300: properly set bt_reset pin
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Eric Miao committed Oct 25, 2011
1 parent c149f6c commit 1a64200
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions arch/arm/mach-pxa/cm-x300.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,6 @@ static struct gpio cm_x300_wi2wi_gpios[] __initdata = {

static void __init cm_x300_init_wi2wi(void)
{
int bt_reset, wlan_en;
int err;

if (system_rev < 130) {
Expand All @@ -791,12 +790,11 @@ static void __init cm_x300_init_wi2wi(void)
}

udelay(10);
gpio_set_value(bt_reset, 0);
gpio_set_value(cm_x300_wi2wi_gpios[1].gpio, 0);
udelay(10);
gpio_set_value(bt_reset, 1);
gpio_set_value(cm_x300_wi2wi_gpios[1].gpio, 1);

gpio_free(wlan_en);
gpio_free(bt_reset);
gpio_free_array(ARRAY_AND_SIZE(cm_x300_wi2wi_gpios));
}

/* MFP */
Expand Down

0 comments on commit 1a64200

Please sign in to comment.