diff options
author | David S. Miller <davem@davemloft.net> | 2010-11-16 12:17:12 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-16 12:17:12 -0500 |
commit | b5e4156743c5d42b736936be7a9ee8d72e0e4ac9 (patch) | |
tree | f0edde33e7b2502ab35a4f63be1a8be31f5f4b6a /arch | |
parent | 6b35308850e1679741e8b646cfb7bb3ab5369888 (diff) | |
parent | b1d771ee33c6e4006676002b9d74abf45b71d3d6 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3pandora.c | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index 89ed1be2d62e..8be261506056 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -642,31 +642,13 @@ static void __init omap3pandora_init_irq(void) | |||
642 | omap_gpio_init(); | 642 | omap_gpio_init(); |
643 | } | 643 | } |
644 | 644 | ||
645 | static void pandora_wl1251_set_power(bool enable) | 645 | static void __init pandora_wl1251_init(void) |
646 | { | ||
647 | /* | ||
648 | * Keep power always on until wl1251_sdio driver learns to re-init | ||
649 | * the chip after powering it down and back up. | ||
650 | */ | ||
651 | } | ||
652 | |||
653 | static struct wl12xx_platform_data pandora_wl1251_pdata = { | ||
654 | .set_power = pandora_wl1251_set_power, | ||
655 | .use_eeprom = true, | ||
656 | }; | ||
657 | |||
658 | static struct platform_device pandora_wl1251_data = { | ||
659 | .name = "wl1251_data", | ||
660 | .id = -1, | ||
661 | .dev = { | ||
662 | .platform_data = &pandora_wl1251_pdata, | ||
663 | }, | ||
664 | }; | ||
665 | |||
666 | static void pandora_wl1251_init(void) | ||
667 | { | 646 | { |
647 | struct wl12xx_platform_data pandora_wl1251_pdata; | ||
668 | int ret; | 648 | int ret; |
669 | 649 | ||
650 | memset(&pandora_wl1251_pdata, 0, sizeof(pandora_wl1251_pdata)); | ||
651 | |||
670 | ret = gpio_request(PANDORA_WIFI_IRQ_GPIO, "wl1251 irq"); | 652 | ret = gpio_request(PANDORA_WIFI_IRQ_GPIO, "wl1251 irq"); |
671 | if (ret < 0) | 653 | if (ret < 0) |
672 | goto fail; | 654 | goto fail; |
@@ -679,6 +661,11 @@ static void pandora_wl1251_init(void) | |||
679 | if (pandora_wl1251_pdata.irq < 0) | 661 | if (pandora_wl1251_pdata.irq < 0) |
680 | goto fail_irq; | 662 | goto fail_irq; |
681 | 663 | ||
664 | pandora_wl1251_pdata.use_eeprom = true; | ||
665 | ret = wl12xx_set_platform_data(&pandora_wl1251_pdata); | ||
666 | if (ret < 0) | ||
667 | goto fail_irq; | ||
668 | |||
682 | return; | 669 | return; |
683 | 670 | ||
684 | fail_irq: | 671 | fail_irq: |
@@ -691,7 +678,6 @@ static struct platform_device *omap3pandora_devices[] __initdata = { | |||
691 | &pandora_leds_gpio, | 678 | &pandora_leds_gpio, |
692 | &pandora_keys_gpio, | 679 | &pandora_keys_gpio, |
693 | &pandora_dss_device, | 680 | &pandora_dss_device, |
694 | &pandora_wl1251_data, | ||
695 | &pandora_vwlan_device, | 681 | &pandora_vwlan_device, |
696 | }; | 682 | }; |
697 | 683 | ||