[PATCH] ARM: OMAP: generic: add call to of_clk_init()

From: Daniel Mack
Date: Tue Feb 19 2013 - 06:05:25 EST


This is needed to instanciate fixed clocks in the DT.

Signed-off-by: Daniel Mack <zonque@xxxxxxxxx>
---
arch/arm/mach-omap2/board-generic.c | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
index 0274ff7..3580f16 100644
--- a/arch/arm/mach-omap2/board-generic.c
+++ b/arch/arm/mach-omap2/board-generic.c
@@ -15,6 +15,7 @@
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/irqdomain.h>
+#include <linux/clk-provider.h>

#include <asm/mach/arch.h>

@@ -35,6 +36,11 @@ static struct of_device_id omap_dt_match_table[] __initdata = {
{ }
};

+static const __initconst struct of_device_id clk_match[] = {
+ { .compatible = "fixed-clock", .data = of_fixed_clk_setup, },
+ {}
+};
+
static void __init omap_generic_init(void)
{
omap_sdrc_init(NULL, NULL);
@@ -49,6 +55,7 @@ static void __init omap_generic_init(void)
omap4_panda_display_init_of();
else if (of_machine_is_compatible("ti,omap4-sdp"))
omap_4430sdp_display_init_of();
+ of_clk_init(clk_match);
}

#ifdef CONFIG_SOC_OMAP2420
--
1.8.1.2


--------------050209050002070506050204--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/