[U-Boot] rockchip: clk: rk3368: use correct (i.e. 'rk3368_clk_priv') structure for auto-alloc

Philipp Tomsich philipp.tomsich at theobroma-systems.com
Wed Jul 12 10:36:01 UTC 2017


> 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 at theobroma-systems.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> ---
> 
>  drivers/clk/rockchip/clk_rk3368.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Applied to u-boot-rockchip, thanks!


More information about the U-Boot mailing list