diff options
author | Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> | 2014-04-05 17:57:45 +0200 |
---|---|---|
committer | Shawn Guo <shawn.guo@freescale.com> | 2014-04-30 13:40:28 +0800 |
commit | 876292d66791c0f635333bf8d31efd11701fe495 (patch) | |
tree | ed7bed8d90e21ea240cba2406f6a609ce2b10833 /arch/arm/mach-imx/clk-imx6sl.c | |
parent | bc02cd69821f3610422d26987f1cdef25c87a7b2 (diff) | |
download | lwn-876292d66791c0f635333bf8d31efd11701fe495.tar.gz lwn-876292d66791c0f635333bf8d31efd11701fe495.zip |
ARM: imx: factor device tree timer initialization
Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to 'arch/arm/mach-imx/clk-imx6sl.c')
-rw-r--r-- | arch/arm/mach-imx/clk-imx6sl.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mach-imx/clk-imx6sl.c b/arch/arm/mach-imx/clk-imx6sl.c index f7073c0782fb..21cf06cebade 100644 --- a/arch/arm/mach-imx/clk-imx6sl.c +++ b/arch/arm/mach-imx/clk-imx6sl.c @@ -169,7 +169,6 @@ static void __init imx6sl_clocks_init(struct device_node *ccm_node) { struct device_node *np; void __iomem *base; - int irq; int i; int ret; @@ -385,9 +384,6 @@ static void __init imx6sl_clocks_init(struct device_node *ccm_node) imx6q_set_lpm(WAIT_CLOCKED); np = of_find_compatible_node(NULL, NULL, "fsl,imx6sl-gpt"); - base = of_iomap(np, 0); - WARN_ON(!base); - irq = irq_of_parse_and_map(np, 0); - mxc_timer_init(base, irq); + mxc_timer_init_dt(np); } CLK_OF_DECLARE(imx6sl, "fsl,imx6sl-ccm", imx6sl_clocks_init); |