summaryrefslogtreecommitdiff
path: root/drivers/clk/rockchip/clk_rk3368.c
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-07-11 21:59:45 +0300
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-07-27 15:59:02 +0300
commitcdc6080a28ccf9c9299518374a8f8d1f9afa7ee7 (patch)
tree989e53a2821ef0c4903f6ba9b2a579dd9963bd74 /drivers/clk/rockchip/clk_rk3368.c
parent700f3108d3970a0f8ea8b05e1a6c1907ea75dfc8 (diff)
downloadu-boot-cdc6080a28ccf9c9299518374a8f8d1f9afa7ee7.tar.xz
rockchip: clk: rk3368: use correct (i.e. 'rk3368_clk_priv') structure for auto-alloc
The clk driver for the RK3368 picked the wrong data structure's size for its auto-alloc size: the size was calculated on the structure representing the CRU hardware block instead of the priv structure. As the CRU's register file is much larger than the driver's priv, this did not cause any pain (except wasting memory). Fix this by using the correct data structure's size. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/clk/rockchip/clk_rk3368.c')
-rw-r--r--drivers/clk/rockchip/clk_rk3368.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/rockchip/clk_rk3368.c b/drivers/clk/rockchip/clk_rk3368.c
index 52cad38446..e1d9aeb8e5 100644
--- a/drivers/clk/rockchip/clk_rk3368.c
+++ b/drivers/clk/rockchip/clk_rk3368.c
@@ -283,7 +283,7 @@ U_BOOT_DRIVER(rockchip_rk3368_cru) = {
.name = "rockchip_rk3368_cru",
.id = UCLASS_CLK,
.of_match = rk3368_clk_ids,
- .priv_auto_alloc_size = sizeof(struct rk3368_cru),
+ .priv_auto_alloc_size = sizeof(struct rk3368_clk_priv),
.ofdata_to_platdata = rk3368_clk_ofdata_to_platdata,
.ops = &rk3368_clk_ops,
.bind = rk3368_clk_bind,