Re: [PATCH v4 7/9] clk: tegra: add clock support for tegra30

From: Hiroshi Doyu
Date: Fri Jan 11 2013 - 07:17:20 EST


On Fri, 11 Jan 2013 08:46:25 +0100
Prashant Gaikwad <pgaikwad@xxxxxxxxxx> wrote:

> Add tegra30 clock support based on common clock framework.
>
> Signed-off-by: Prashant Gaikwad <pgaikwad@xxxxxxxxxx>
.......
> +static void __init tegra30_pll_init(void)
> +{
> + struct clk *clk;
> +
> + /* PLLC */
> + clk = tegra_clk_pll("pll_c", "pll_ref", clk_base, pmc_base, 0,
> + 0, &pll_c_params,
> + TEGRA_PLL_HAS_CPCON | TEGRA_PLL_USE_LOCK,
> + pll_c_freq_table, NULL);
> + clk_register_clkdev(clk, "pll_c", NULL);
> + clks[pll_c] = clk;

Just I noticed that there are quite many same itegration of:

clk_register_clkdev(clk, <ID name>, ?);
clks[<ID>] = clk;

ID == <ID name>

Can any macro/func do the above at once?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/