aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Chen2016-09-27 15:48:45 +0800
committerSimon Glass2016-10-30 13:29:06 -0600
commit8dfb4a28f5645874d9b47cffe44055a3a71ca78b (patch)
tree91fb01628113ebbd351d901b6f8ddbebc7c786a9
parent60169826b7cee90ebc69e5b3fe38f1b833ba5b2d (diff)
clk: rk3399: fix rockchip_get_cru
clk_rk3399 is driver name, not device name Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r--drivers/clk/rockchip/clk_rk3399.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c
index ea0ce2aab10..8efb8926067 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);