clk: bcm281xx: don't disable unused peripheral clocks
authorAlex Elder <elder@linaro.org>
Fri, 14 Feb 2014 18:29:19 +0000 (12:29 -0600)
committerMatt Porter <mporter@linaro.org>
Mon, 24 Feb 2014 18:50:36 +0000 (13:50 -0500)
Add the CLK_IGNORE_UNUSED flag when setting up a peripheral clock.
This prevents unused clocks from getting disabled, and by doing
this we can use the common clock code even before we've resolved
all the spots that need to get a reference to their clock.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Matt Porter <mporter@linaro.org>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Matt Porter <mporter@linaro.org>
drivers/clk/bcm/clk-kona-setup.c

index f1e88fe6bb4c06a1ae4764c49364e214f3152a8f..c7607feb18dd159b7626fd48340c764f50738c10 100644 (file)
@@ -579,7 +579,7 @@ static int peri_clk_setup(struct ccu_data *ccu, struct peri_clk_data *data,
                        struct clk_init_data *init_data)
 {
        init_data->ops = &kona_peri_clk_ops;
-       init_data->flags = 0;
+       init_data->flags = CLK_IGNORE_UNUSED;
 
        return clk_sel_setup(data->clocks, &data->sel, init_data);
 }