mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
rockchip: rk3328: fix rockchip_get_cru api
The API for get priv pointer is wrong, fix it. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
parent
9f636a249c
commit
36de37f5ca
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ void *rockchip_get_cru(void)
|
|||
if (ret)
|
||||
return ERR_PTR(ret);
|
||||
|
||||
priv = devfdt_get_addr_ptr(dev);
|
||||
priv = dev_get_priv(dev);
|
||||
|
||||
return priv->cru;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue