mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
clk: rockchip: allow no rockchip,grf in dts on arm
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
This commit is contained in:
parent
a9ff4234b2
commit
a3933acd35
|
|
@ -1885,7 +1885,12 @@ static void __init rk_clk_tree_init(struct device_node *np)
|
|||
}
|
||||
|
||||
node = of_parse_phandle(np, "rockchip,grf", 0);
|
||||
rk_grf_base = of_iomap(node, 0);
|
||||
if (node)
|
||||
rk_grf_base = of_iomap(node, 0);
|
||||
#ifdef CONFIG_ARM
|
||||
if (!rk_grf_base)
|
||||
rk_grf_base = RK_GRF_VIRT;
|
||||
#endif
|
||||
|
||||
for_each_available_child_of_node(np, node) {
|
||||
clk_debug("\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user