static void __init omap3pandora_init_irq(void)
  {
-       omap2_init_common_hw(mt46h32m32lf6_sdrc_params,
-                            mt46h32m32lf6_sdrc_params);
+       omap2_init_common_infrastructure();
+       omap2_init_common_devices(mt46h32m32lf6_sdrc_params,
+                                 mt46h32m32lf6_sdrc_params);
        omap_init_irq();
-       omap_gpio_init();
  }
  
 -static void pandora_wl1251_set_power(bool enable)
 -{
 -      /*
 -       * Keep power always on until wl1251_sdio driver learns to re-init
 -       * the chip after powering it down and back up.
 -       */
 -}
 -
 -static struct wl12xx_platform_data pandora_wl1251_pdata = {
 -      .set_power      = pandora_wl1251_set_power,
 -      .use_eeprom     = true,
 -};
 -
 -static struct platform_device pandora_wl1251_data = {
 -      .name           = "wl1251_data",
 -      .id             = -1,
 -      .dev            = {
 -              .platform_data  = &pandora_wl1251_pdata,
 -      },
 -};
 -
 -static void pandora_wl1251_init(void)
 +static void __init pandora_wl1251_init(void)
  {
 +      struct wl12xx_platform_data pandora_wl1251_pdata;
        int ret;
  
 +      memset(&pandora_wl1251_pdata, 0, sizeof(pandora_wl1251_pdata));
 +
        ret = gpio_request(PANDORA_WIFI_IRQ_GPIO, "wl1251 irq");
        if (ret < 0)
                goto fail;
 
  
  #include <plat/cpu.h>
  #include <plat/clock.h>
 -#include <asm/clkdev.h>
  
  #include "clock.h"
- #include "prm.h"
- #include "prm-regbits-34xx.h"
- #include "cm.h"
+ #include "cm2xxx_3xxx.h"
  #include "cm-regbits-34xx.h"
  
  /* CM_AUTOIDLE_PLL*.AUTO_* bit values */