]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk3328: fix rockchip_get_cru api
authorKever Yang <kever.yang@rock-chips.com>
Wed, 25 Oct 2017 08:24:48 +0000 (16:24 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Wed, 1 Nov 2017 10:21:32 +0000 (11:21 +0100)
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>
arch/arm/mach-rockchip/rk3328/clk_rk3328.c

index 4dcac27cc7e16900ae23be679c365d91aeeb39e9..013d777a027eb93a5b941fceb3469d197803d521 100644 (file)
@@ -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;
 }