Merge tag 's390-5.15-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[linux-2.6-microblaze.git] / drivers / clk / imx / clk-imx6q.c
index 521d613..de36f58 100644 (file)
@@ -140,13 +140,6 @@ static inline int clk_on_imx6dl(void)
        return of_machine_is_compatible("fsl,imx6dl");
 }
 
-static const int uart_clk_ids[] __initconst = {
-       IMX6QDL_CLK_UART_IPG,
-       IMX6QDL_CLK_UART_SERIAL,
-};
-
-static struct clk **uart_clks[ARRAY_SIZE(uart_clk_ids) + 1] __initdata;
-
 static int ldb_di_sel_by_clock_id(int clock_id)
 {
        switch (clock_id) {
@@ -440,7 +433,6 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node)
        struct device_node *np;
        void __iomem *anatop_base, *base;
        int ret;
-       int i;
 
        clk_hw_data = kzalloc(struct_size(clk_hw_data, hws,
                                          IMX6QDL_CLK_END), GFP_KERNEL);
@@ -982,12 +974,6 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node)
                               hws[IMX6QDL_CLK_PLL3_USB_OTG]->clk);
        }
 
-       for (i = 0; i < ARRAY_SIZE(uart_clk_ids); i++) {
-               int index = uart_clk_ids[i];
-
-               uart_clks[i] = &hws[index]->clk;
-       }
-
-       imx_register_uart_clocks(uart_clks);
+       imx_register_uart_clocks(2);
 }
 CLK_OF_DECLARE(imx6q, "fsl,imx6q-ccm", imx6q_clocks_init);