diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-rx51-peripherals.c')
-rw-r--r-- | arch/arm/mach-omap2/board-rx51-peripherals.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index e05e740a4426..ddfc8df83c6a 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c | |||
@@ -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 |