diff options
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 5c5315ba129b..5336c75926cd 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -19,7 +19,6 @@ | |||
19 | #include <linux/of.h> | 19 | #include <linux/of.h> |
20 | #include <linux/pinctrl/machine.h> | 20 | #include <linux/pinctrl/machine.h> |
21 | #include <linux/platform_data/omap4-keypad.h> | 21 | #include <linux/platform_data/omap4-keypad.h> |
22 | #include <linux/wl12xx.h> | ||
23 | #include <linux/platform_data/mailbox-omap.h> | 22 | #include <linux/platform_data/mailbox-omap.h> |
24 | 23 | ||
25 | #include <asm/mach-types.h> | 24 | #include <asm/mach-types.h> |
@@ -475,40 +474,6 @@ static void omap_init_vout(void) | |||
475 | static inline void omap_init_vout(void) {} | 474 | static inline void omap_init_vout(void) {} |
476 | #endif | 475 | #endif |
477 | 476 | ||
478 | #if IS_ENABLED(CONFIG_WL12XX) | ||
479 | |||
480 | static struct wl12xx_platform_data wl12xx __initdata; | ||
481 | |||
482 | void __init omap_init_wl12xx_of(void) | ||
483 | { | ||
484 | int ret; | ||
485 | |||
486 | if (!of_have_populated_dt()) | ||
487 | return; | ||
488 | |||
489 | if (of_machine_is_compatible("ti,omap4-sdp")) { | ||
490 | wl12xx.board_ref_clock = WL12XX_REFCLOCK_26; | ||
491 | wl12xx.board_tcxo_clock = WL12XX_TCXOCLOCK_26; | ||
492 | wl12xx.irq = gpio_to_irq(53); | ||
493 | } else if (of_machine_is_compatible("ti,omap4-panda")) { | ||
494 | wl12xx.board_ref_clock = WL12XX_REFCLOCK_38; | ||
495 | wl12xx.irq = gpio_to_irq(53); | ||
496 | } else { | ||
497 | return; | ||
498 | } | ||
499 | |||
500 | ret = wl12xx_set_platform_data(&wl12xx); | ||
501 | if (ret) { | ||
502 | pr_err("error setting wl12xx data: %d\n", ret); | ||
503 | return; | ||
504 | } | ||
505 | } | ||
506 | #else | ||
507 | static inline void omap_init_wl12xx_of(void) | ||
508 | { | ||
509 | } | ||
510 | #endif | ||
511 | |||
512 | /*-------------------------------------------------------------------------*/ | 477 | /*-------------------------------------------------------------------------*/ |
513 | 478 | ||
514 | static int __init omap2_init_devices(void) | 479 | static int __init omap2_init_devices(void) |
@@ -531,9 +496,6 @@ static int __init omap2_init_devices(void) | |||
531 | omap_init_sham(); | 496 | omap_init_sham(); |
532 | omap_init_aes(); | 497 | omap_init_aes(); |
533 | omap_init_rng(); | 498 | omap_init_rng(); |
534 | } else { | ||
535 | /* These can be removed when bindings are done */ | ||
536 | omap_init_wl12xx_of(); | ||
537 | } | 499 | } |
538 | omap_init_sti(); | 500 | omap_init_sti(); |
539 | omap_init_vout(); | 501 | omap_init_vout(); |