]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: at91: dt: Remove init_time definitions
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 2 Sep 2014 16:02:26 +0000 (18:02 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 3 Sep 2014 08:55:42 +0000 (10:55 +0200)
The current AT91 DT boards have a completely generic init_time definition.
Remove them from the machine declaration.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Conflicts:
arch/arm/mach-at91/board-dt-sam9.c
arch/arm/mach-at91/board-dt-sama5.c

arch/arm/mach-at91/board-dt-sam9.c
arch/arm/mach-at91/board-dt-sama5.c

index 78962fd238595f74ffa30bae1ec32ba0f1211be6..d3048ccdc41f1dd936c1a01d1cf41b0fec8ebe65 100644 (file)
@@ -14,7 +14,6 @@
 #include <linux/of.h>
 #include <linux/of_irq.h>
 #include <linux/clk-provider.h>
-#include <linux/clocksource.h>
 
 #include <asm/setup.h>
 #include <asm/irq.h>
 #include "board.h"
 #include "generic.h"
 
-
-static void __init sam9_dt_timer_init(void)
-{
-#if defined(CONFIG_COMMON_CLK)
-       of_clk_init(NULL);
-#endif
-       clocksource_of_init();
-}
-
 static const char *at91_dt_board_compat[] __initdata = {
        "atmel,at91sam9",
        NULL
@@ -42,7 +32,6 @@ static const char *at91_dt_board_compat[] __initdata = {
 
 DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM (Device Tree)")
        /* Maintainer: Atmel */
-       .init_time      = sam9_dt_timer_init,
        .map_io         = at91_map_io,
        .init_early     = at91_dt_initialize,
        .dt_compat      = at91_dt_board_compat,
index 4f01e34fae0ada19e4bb1b693cf4c3ab1c7b22b6..be6aa2e2c3436de3a33bc7de9f9f257abce30046 100644 (file)
@@ -17,7 +17,6 @@
 #include <linux/of_platform.h>
 #include <linux/phy.h>
 #include <linux/clk-provider.h>
-#include <linux/clocksource.h>
 
 #include <asm/setup.h>
 #include <asm/irq.h>
 #include "at91_aic.h"
 #include "generic.h"
 
-static void __init sama5_dt_timer_init(void)
-{
-#if defined(CONFIG_COMMON_CLK)
-       of_clk_init(NULL);
-#endif
-       clocksource_of_init();
-}
-
 static int ksz9021rn_phy_fixup(struct phy_device *phy)
 {
        int value;
@@ -70,7 +61,6 @@ static const char *sama5_dt_board_compat[] __initdata = {
 
 DT_MACHINE_START(sama5_dt, "Atmel SAMA5 (Device Tree)")
        /* Maintainer: Atmel */
-       .init_time      = sama5_dt_timer_init,
        .map_io         = at91_map_io,
        .init_early     = at91_dt_initialize,
        .init_machine   = sama5_dt_device_init,