Skip to content
Snippets Groups Projects
Commit 8dfb4a28 authored by Jacob Chen's avatar Jacob Chen Committed by Simon Glass
Browse files

clk: rk3399: fix rockchip_get_cru


clk_rk3399 is driver name, not device name

Signed-off-by: default avatarJacob Chen <jacob2.chen@rock-chips.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 60169826
No related branches found
No related tags found
No related merge requests found
...@@ -786,7 +786,9 @@ void *rockchip_get_cru(void) ...@@ -786,7 +786,9 @@ void *rockchip_get_cru(void)
fdt_addr_t *addr; fdt_addr_t *addr;
int ret; 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) if (ret)
return ERR_PTR(ret); return ERR_PTR(ret);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment