aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/rockchip/clk.h
diff options
context:
space:
mode:
authorHeiko Stübner <heiko@sntech.de>2015-12-26 14:07:15 +0100
committerMichael Turquette <mturquette@baylibre.com>2016-01-02 13:40:29 -0800
commit5b73840375e3eebeb7adf957ff64a96abdf4e1a1 (patch)
tree45c9a879220f0583224e1b65d19d673367d30db0 /drivers/clk/rockchip/clk.h
parentclk: rockchip: rk3036: include downstream muxes into fractional dividers (diff)
downloadlinux-dev-5b73840375e3eebeb7adf957ff64a96abdf4e1a1.tar.xz
linux-dev-5b73840375e3eebeb7adf957ff64a96abdf4e1a1.zip
clk: rockchip: fix section mismatches with new child-clocks
To model the muxes downstream of fractional dividers we introduced the child property, allowing to describe a direct child clock. The first implementation seems to cause section warnings, as the core clock-tree is marked as initdata while the data pointed to from the child element is not. While there may be some way to also set that missing property in the inline notation I didn't find it, so to actually fix the issue for now move the sub-definitions into separate declarations that can have their own __initdata properties. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Diffstat (limited to 'drivers/clk/rockchip/clk.h')
-rw-r--r--drivers/clk/rockchip/clk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/rockchip/clk.h b/drivers/clk/rockchip/clk.h
index 176a3eb52ef4..c5274548dc6f 100644
--- a/drivers/clk/rockchip/clk.h
+++ b/drivers/clk/rockchip/clk.h
@@ -415,7 +415,7 @@ struct rockchip_clk_branch {
.gate_offset = go, \
.gate_shift = gs, \
.gate_flags = gf, \
- .child = &(struct rockchip_clk_branch)ch, \
+ .child = ch, \
}
#define MUX(_id, cname, pnames, f, o, s, w, mf) \