clk: boston: Allow to get regmap from parent device
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Fri, 17 May 2024 18:14:57 +0000 (19:14 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 22 Apr 2025 21:08:47 +0000 (15:08 -0600)
commit964bb01f34741c9866917337afecab98262be562
tree98ff8adc9e62c6722e73ab53f6bc977cfce7d6c4
parenta6661e260c5f98b578a636a5e265690435167981
clk: boston: Allow to get regmap from parent device

In upstream devicetree, clk_boston is a child of syscon node
and there is no "regmap" property for clk_boston node.

Try to check parent device first to look for syscon.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
drivers/clk/clk_boston.c