[U-Boot] [PATCH] clk: rk3399: fix rockchip_get_cru

Jacob Chen jacob2.chen at rock-chips.com
Tue Sep 27 09:48:45 CEST 2016


clk_rk3399 is driver name, not device name

Signed-off-by: Jacob Chen <jacob2.chen at rock-chips.com>
---

 drivers/clk/rockchip/clk_rk3399.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c
index ea0ce2a..8efb892 100644
--- a/drivers/clk/rockchip/clk_rk3399.c
+++ b/drivers/clk/rockchip/clk_rk3399.c
@@ -786,7 +786,9 @@ void *rockchip_get_cru(void)
 	fdt_addr_t *addr;
 	int ret;
 
-	ret = uclass_get_device_by_name(UCLASS_CLK, "clk_rk3399", &dev);
+	ret = uclass_get_device_by_driver(UCLASS_CLK,
+			DM_GET_DRIVER(clk_rk3399), &dev);
+
 	if (ret)
 		return ERR_PTR(ret);
 
-- 
1.9.1



More information about the U-Boot mailing list