[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2683576.o9hXnVZqaR@phil>
Date: Fri, 02 Mar 2018 16:43:09 +0100
From: Heiko Stuebner <heiko@...ech.de>
To: Jeffy Chen <jeffy.chen@...k-chips.com>
Cc: linux-kernel@...r.kernel.org, dmitry.torokhov@...il.com,
wxt@...k-chips.com, linux-rockchip@...ts.infradead.org,
Geert Uytterhoeven <geert+renesas@...der.be>,
"Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
Elaine Zhang <zhangqing@...k-chips.com>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH] soc: rockchip: power-domain: use clk_bulk APIs
Hi Jeffy,
Am Mittwoch, 28. Februar 2018, 13:41:43 CET schrieb Jeffy Chen:
> Use clk_bulk APIs, and also add error handling for clk enable.
>
> Signed-off-by: Jeffy Chen <jeffy.chen@...k-chips.com>
[...]
> - for (i = 0; i < clk_cnt; i++) {
> - clk = of_clk_get(node, i);
> - if (IS_ERR(clk)) {
> - error = PTR_ERR(clk);
> + pd->num_clks = of_count_phandle_with_args(node, "clocks",
> + "#clock-cells");
> +
> + pd->clks = devm_kzalloc(pmu->dev, pd->num_clks * sizeof(pd->clks[0]),
applied for 4.17, after changing to devm_kcalloc like below:
pd->clks = devm_kcalloc(pmu->dev, pd->num_clks, sizeof(*pd->clks),
Thanks
Heiko
Powered by blists - more mailing lists