diff options
author | John W. Linville <linville@tuxdriver.com> | 2014-03-13 14:21:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-03-13 14:21:43 -0400 |
commit | 42775a34d23027b19e984956a539448f5e7ff075 (patch) | |
tree | e344340c7f0aed4c8faf7534fabbc64607a8e784 /arch/arm/mach-omap2 | |
parent | 433131ba03c511a84e1fda5669c70cf8b44702e1 (diff) | |
parent | 4e3b3bcd81776527fa6f11624d68849de8c8802e (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Conflicts:
drivers/net/wireless/ath/ath9k/recv.c
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3pandora.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-rx51-peripherals.c | 13 |
2 files changed, 7 insertions, 12 deletions
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index de1bc6bbe585..cf18340eb3bb 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -536,11 +536,13 @@ static struct spi_board_info omap3pandora_spi_board_info[] __initdata = { | |||
536 | 536 | ||
537 | static void __init pandora_wl1251_init(void) | 537 | static void __init pandora_wl1251_init(void) |
538 | { | 538 | { |
539 | struct wl12xx_platform_data pandora_wl1251_pdata; | 539 | struct wl1251_platform_data pandora_wl1251_pdata; |
540 | int ret; | 540 | int ret; |
541 | 541 | ||
542 | memset(&pandora_wl1251_pdata, 0, sizeof(pandora_wl1251_pdata)); | 542 | memset(&pandora_wl1251_pdata, 0, sizeof(pandora_wl1251_pdata)); |
543 | 543 | ||
544 | pandora_wl1251_pdata.power_gpio = -1; | ||
545 | |||
544 | ret = gpio_request_one(PANDORA_WIFI_IRQ_GPIO, GPIOF_IN, "wl1251 irq"); | 546 | ret = gpio_request_one(PANDORA_WIFI_IRQ_GPIO, GPIOF_IN, "wl1251 irq"); |
545 | if (ret < 0) | 547 | if (ret < 0) |
546 | goto fail; | 548 | goto fail; |
@@ -550,7 +552,7 @@ static void __init pandora_wl1251_init(void) | |||
550 | goto fail_irq; | 552 | goto fail_irq; |
551 | 553 | ||
552 | pandora_wl1251_pdata.use_eeprom = true; | 554 | pandora_wl1251_pdata.use_eeprom = true; |
553 | ret = wl12xx_set_platform_data(&pandora_wl1251_pdata); | 555 | ret = wl1251_set_platform_data(&pandora_wl1251_pdata); |
554 | if (ret < 0) | 556 | if (ret < 0) |
555 | goto fail_irq; | 557 | goto fail_irq; |
556 | 558 | ||
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 8760bbe3baab..ddfc8df83c6a 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c | |||
@@ -84,7 +84,7 @@ enum { | |||
84 | RX51_SPI_MIPID, /* LCD panel */ | 84 | RX51_SPI_MIPID, /* LCD panel */ |
85 | }; | 85 | }; |
86 | 86 | ||
87 | static struct wl12xx_platform_data wl1251_pdata; | 87 | static struct wl1251_platform_data wl1251_pdata; |
88 | static struct tsc2005_platform_data tsc2005_pdata; | 88 | static struct tsc2005_platform_data tsc2005_pdata; |
89 | 89 | ||
90 | #if defined(CONFIG_SENSORS_LIS3_I2C) || defined(CONFIG_SENSORS_LIS3_I2C_MODULE) | 90 | #if defined(CONFIG_SENSORS_LIS3_I2C) || defined(CONFIG_SENSORS_LIS3_I2C_MODULE) |
@@ -1173,13 +1173,7 @@ static inline void board_smc91x_init(void) | |||
1173 | 1173 | ||
1174 | #endif | 1174 | #endif |
1175 | 1175 | ||
1176 | static void rx51_wl1251_set_power(bool enable) | ||
1177 | { | ||
1178 | gpio_set_value(RX51_WL1251_POWER_GPIO, enable); | ||
1179 | } | ||
1180 | |||
1181 | static struct gpio rx51_wl1251_gpios[] __initdata = { | 1176 | static struct gpio rx51_wl1251_gpios[] __initdata = { |
1182 | { RX51_WL1251_POWER_GPIO, GPIOF_OUT_INIT_LOW, "wl1251 power" }, | ||
1183 | { RX51_WL1251_IRQ_GPIO, GPIOF_IN, "wl1251 irq" }, | 1177 | { RX51_WL1251_IRQ_GPIO, GPIOF_IN, "wl1251 irq" }, |
1184 | }; | 1178 | }; |
1185 | 1179 | ||
@@ -1196,17 +1190,16 @@ static void __init rx51_init_wl1251(void) | |||
1196 | if (irq < 0) | 1190 | if (irq < 0) |
1197 | goto err_irq; | 1191 | goto err_irq; |
1198 | 1192 | ||
1199 | wl1251_pdata.set_power = rx51_wl1251_set_power; | 1193 | wl1251_pdata.power_gpio = RX51_WL1251_POWER_GPIO; |
1200 | rx51_peripherals_spi_board_info[RX51_SPI_WL1251].irq = irq; | 1194 | rx51_peripherals_spi_board_info[RX51_SPI_WL1251].irq = irq; |
1201 | 1195 | ||
1202 | return; | 1196 | return; |
1203 | 1197 | ||
1204 | err_irq: | 1198 | err_irq: |
1205 | gpio_free(RX51_WL1251_IRQ_GPIO); | 1199 | gpio_free(RX51_WL1251_IRQ_GPIO); |
1206 | gpio_free(RX51_WL1251_POWER_GPIO); | ||
1207 | error: | 1200 | error: |
1208 | printk(KERN_ERR "wl1251 board initialisation failed\n"); | 1201 | printk(KERN_ERR "wl1251 board initialisation failed\n"); |
1209 | wl1251_pdata.set_power = NULL; | 1202 | wl1251_pdata.power_gpio = -1; |
1210 | 1203 | ||
1211 | /* | 1204 | /* |
1212 | * Now rx51_peripherals_spi_board_info[1].irq is zero and | 1205 | * Now rx51_peripherals_spi_board_info[1].irq is zero and |