All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] clk: rk3399: fix rockchip_get_cru
@ 2016-09-27  7:48 Jacob Chen
  2016-09-27 17:55 ` Simon Glass
  0 siblings, 1 reply; 3+ messages in thread
From: Jacob Chen @ 2016-09-27  7:48 UTC (permalink / raw)
  To: u-boot

clk_rk3399 is driver name, not device name

Signed-off-by: Jacob Chen <jacob2.chen@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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] clk: rk3399: fix rockchip_get_cru
  2016-09-27  7:48 [U-Boot] [PATCH] clk: rk3399: fix rockchip_get_cru Jacob Chen
@ 2016-09-27 17:55 ` Simon Glass
  2016-10-15 13:11   ` Simon Glass
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Glass @ 2016-09-27 17:55 UTC (permalink / raw)
  To: u-boot

On 27 September 2016 at 01:48, Jacob Chen <jacob2.chen@rock-chips.com> wrote:
> clk_rk3399 is driver name, not device name
>
> Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
> ---
>
>  drivers/clk/rockchip/clk_rk3399.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Acked-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] clk: rk3399: fix rockchip_get_cru
  2016-09-27 17:55 ` Simon Glass
@ 2016-10-15 13:11   ` Simon Glass
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Glass @ 2016-10-15 13:11 UTC (permalink / raw)
  To: u-boot

On 27 September 2016 at 11:55, Simon Glass <sjg@chromium.org> wrote:
> On 27 September 2016 at 01:48, Jacob Chen <jacob2.chen@rock-chips.com> wrote:
>> clk_rk3399 is driver name, not device name
>>
>> Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
>> ---
>>
>>  drivers/clk/rockchip/clk_rk3399.c | 4 +++-
>>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-rockchip, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-15 13:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-27  7:48 [U-Boot] [PATCH] clk: rk3399: fix rockchip_get_cru Jacob Chen
2016-09-27 17:55 ` Simon Glass
2016-10-15 13:11   ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.