summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/mach-imx6sl.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2013-05-21 05:58:51 +0400
committerShawn Guo <shawn.guo@linaro.org>2013-06-17 11:45:14 +0400
commit53bb71da1c5c14267089218923585840f76e2480 (patch)
tree872fa273049ea680d51bf21c5efb50833f0e9de5 /arch/arm/mach-imx/mach-imx6sl.c
parent12aad63ca466409a531e5b79abb59d8de33bcbaa (diff)
downloadlinux-53bb71da1c5c14267089218923585840f76e2480.tar.xz
ARM: imx6: use common of_clk_init() call to initialize clocks
Instead of explicitly calling clock initialization functions, we can declare the functions with CLK_OF_DECLARE() and then call common of_clk_init() to have them invoked properly. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/mach-imx6sl.c')
-rw-r--r--arch/arm/mach-imx/mach-imx6sl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mach-imx6sl.c b/arch/arm/mach-imx/mach-imx6sl.c
index 0130ee6284f1..132db2609507 100644
--- a/arch/arm/mach-imx/mach-imx6sl.c
+++ b/arch/arm/mach-imx/mach-imx6sl.c
@@ -7,6 +7,7 @@
*
*/
+#include <linux/clk-provider.h>
#include <linux/irqchip.h>
#include <linux/of.h>
#include <linux/of_platform.h>
@@ -33,7 +34,7 @@ static void __init imx6sl_init_irq(void)
static void __init imx6sl_timer_init(void)
{
- imx6sl_clocks_init();
+ of_clk_init(NULL);
}
static const char *imx6sl_dt_compat[] __initdata = {