Skip to content

Commit

Permalink
ARM: sunxi: remove custom .init_time hook
Browse files Browse the repository at this point in the history
With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  • Loading branch information
Sebastian Hesselbarth committed Sep 29, 2013
1 parent 28fbb15 commit b39e024
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions arch/arm/mach-sunxi/sunxi.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* warranty of any kind, whether express or implied.
*/

#include <linux/clocksource.h>
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/init.h>
Expand Down Expand Up @@ -114,12 +113,6 @@ static void sunxi_setup_restart(void)
arm_pm_restart = of_id->data;
}

static void __init sunxi_timer_init(void)
{
of_clk_init(NULL);
clocksource_of_init();
}

static void __init sunxi_dt_init(void)
{
sunxi_setup_restart();
Expand All @@ -138,6 +131,5 @@ static const char * const sunxi_board_dt_compat[] = {

DT_MACHINE_START(SUNXI_DT, "Allwinner A1X (Device Tree)")
.init_machine = sunxi_dt_init,
.init_time = sunxi_timer_init,
.dt_compat = sunxi_board_dt_compat,
MACHINE_END

0 comments on commit b39e024

Please sign in to comment.