diff options
author | Jacob Chen <jacob2.chen@rock-chips.com> | 2016-09-27 15:48:45 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-10-30 13:29:06 -0600 |
commit | 8dfb4a28f5645874d9b47cffe44055a3a71ca78b (patch) | |
tree | 91fb01628113ebbd351d901b6f8ddbebc7c786a9 /drivers/clk/rockchip | |
parent | 60169826b7cee90ebc69e5b3fe38f1b833ba5b2d (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>
Diffstat (limited to 'drivers/clk/rockchip')
-rw-r--r-- | drivers/clk/rockchip/clk_rk3399.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c index ea0ce2aab1..8efb892606 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); |