diff options
| author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2014-09-05 10:15:33 -0400 |
|---|---|---|
| committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2014-09-05 11:35:47 -0400 |
| commit | 04ffc960d7295b7f05bf4a14e1f7d967e46b7577 (patch) | |
| tree | 20b11f4f90e0d4534bcf30257f9b6f56f5365557 | |
| parent | 650ca015fd52b130af82518d5ed338f52974cec4 (diff) | |
ARM: at91: rm9200: fix clock registration
Actually register clocks from device tree when using the common clock
framework.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
[nicolas.ferre@atmel.com: add at91 to function name]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
| -rw-r--r-- | arch/arm/mach-at91/board-dt-rm9200.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/board-dt-rm9200.c b/arch/arm/mach-at91/board-dt-rm9200.c index 3a185faee795..f4b6e91843e4 100644 --- a/arch/arm/mach-at91/board-dt-rm9200.c +++ b/arch/arm/mach-at91/board-dt-rm9200.c | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | #include <linux/gpio.h> | 14 | #include <linux/gpio.h> |
| 15 | #include <linux/of.h> | 15 | #include <linux/of.h> |
| 16 | #include <linux/of_irq.h> | 16 | #include <linux/of_irq.h> |
| 17 | #include <linux/clk-provider.h> | ||
| 17 | 18 | ||
| 18 | #include <asm/setup.h> | 19 | #include <asm/setup.h> |
| 19 | #include <asm/irq.h> | 20 | #include <asm/irq.h> |
| @@ -35,13 +36,21 @@ static void __init at91rm9200_dt_init_irq(void) | |||
| 35 | of_irq_init(irq_of_match); | 36 | of_irq_init(irq_of_match); |
| 36 | } | 37 | } |
| 37 | 38 | ||
| 39 | static void __init at91rm9200_dt_timer_init(void) | ||
| 40 | { | ||
| 41 | #if defined(CONFIG_COMMON_CLK) | ||
| 42 | of_clk_init(NULL); | ||
| 43 | #endif | ||
| 44 | at91rm9200_timer_init(); | ||
| 45 | } | ||
| 46 | |||
| 38 | static const char *at91rm9200_dt_board_compat[] __initdata = { | 47 | static const char *at91rm9200_dt_board_compat[] __initdata = { |
| 39 | "atmel,at91rm9200", | 48 | "atmel,at91rm9200", |
| 40 | NULL | 49 | NULL |
| 41 | }; | 50 | }; |
| 42 | 51 | ||
| 43 | DT_MACHINE_START(at91rm9200_dt, "Atmel AT91RM9200 (Device Tree)") | 52 | DT_MACHINE_START(at91rm9200_dt, "Atmel AT91RM9200 (Device Tree)") |
| 44 | .init_time = at91rm9200_timer_init, | 53 | .init_time = at91rm9200_dt_timer_init, |
| 45 | .map_io = at91_map_io, | 54 | .map_io = at91_map_io, |
| 46 | .handle_irq = at91_aic_handle_irq, | 55 | .handle_irq = at91_aic_handle_irq, |
| 47 | .init_early = at91rm9200_dt_initialize, | 56 | .init_early = at91rm9200_dt_initialize, |
