Skip to content

Commit

Permalink
clk: sunxi: Use common of_clk_init() function
Browse files Browse the repository at this point in the history
Use common of_clk_init() function to initialize clocks.

Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Acked-by: Maxime Ripard <maxime.ripard@anandra.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
  • Loading branch information
Prashant Gaikwad authored and Mike Turquette committed Jan 24, 2013
1 parent f2f6c25 commit 85a1819
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 54 deletions.
30 changes: 0 additions & 30 deletions drivers/clk/clk-sunxi.c

This file was deleted.

4 changes: 2 additions & 2 deletions drivers/clocksource/sunxi_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/sunxi_timer.h>
#include <linux/clk/sunxi.h>
#include <linux/clk-provider.h>

#define TIMER_CTL_REG 0x00
#define TIMER_CTL_ENABLE (1 << 0)
Expand Down Expand Up @@ -124,7 +124,7 @@ static void __init sunxi_timer_init(void)
if (irq <= 0)
panic("Can't parse IRQ");

sunxi_init_clocks();
of_clk_init(NULL);

clk = of_clk_get(node, 0);
if (IS_ERR(clk))
Expand Down
22 changes: 0 additions & 22 deletions include/linux/clk/sunxi.h

This file was deleted.

0 comments on commit 85a1819

Please sign in to comment.