Commit ff1ae209 authored by Shawn Lin's avatar Shawn Lin Committed by Heiko Stuebner

clk: rockchip: remove redundant checking of device_node

rockchip_clk_of_add_provider is used by sub-clk driver which
already call of_iomap before calling it. If device_node does
not exist, of_iomap returns NULL which will fail to init the
sub-clk driver. So really it's redundant.
Signed-off-by: default avatarShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent 2af2544d
...@@ -359,11 +359,9 @@ struct rockchip_clk_provider * __init rockchip_clk_init(struct device_node *np, ...@@ -359,11 +359,9 @@ struct rockchip_clk_provider * __init rockchip_clk_init(struct device_node *np,
void __init rockchip_clk_of_add_provider(struct device_node *np, void __init rockchip_clk_of_add_provider(struct device_node *np,
struct rockchip_clk_provider *ctx) struct rockchip_clk_provider *ctx)
{ {
if (np) { if (of_clk_add_provider(np, of_clk_src_onecell_get,
if (of_clk_add_provider(np, of_clk_src_onecell_get, &ctx->clk_data))
&ctx->clk_data)) pr_err("%s: could not register clk provider\n", __func__);
pr_err("%s: could not register clk provider\n", __func__);
}
} }
struct regmap *rockchip_clk_get_grf(struct rockchip_clk_provider *ctx) struct regmap *rockchip_clk_get_grf(struct rockchip_clk_provider *ctx)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment