]> git.sur5r.net Git - u-boot/commitdiff
clk: rk3399: fix rockchip_get_cru
authorJacob Chen <jacob2.chen@rock-chips.com>
Tue, 27 Sep 2016 07:48:45 +0000 (15:48 +0800)
committerSimon Glass <sjg@chromium.org>
Sun, 30 Oct 2016 19:29:06 +0000 (13:29 -0600)
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>
drivers/clk/rockchip/clk_rk3399.c

index ea0ce2aab101ec67e86ee064ce7997f543883ea6..8efb8926067584d04b6ac54d6b452df8ee7c1d1c 100644 (file)
@@ -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);