Merge branch 'origin' into devel-stable
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-mx25 / clock.c
index 56bf958d8c34e9985e22b2767b584a5bb55879cc..155014993b13cc18d7724ca5d3d03604c7a103e1 100644 (file)
@@ -229,10 +229,7 @@ static struct clk_lookup lookups[] = {
 
 int __init mx25_clocks_init(void)
 {
-       int i;
-
-       for (i = 0; i < ARRAY_SIZE(lookups); i++)
-               clkdev_add(&lookups[i]);
+       clkdev_add_table(lookups, ARRAY_SIZE(lookups));
 
        /* Turn off all clocks except the ones we need to survive, namely:
         * EMI, GPIO1-3 (CCM_CGCR1[18:16]), GPT1, IOMUXC (CCM_CGCR1[27]), IIM,