All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] fdt: fix dev_get_addr_name node offset
@ 2016-04-28 22:04 Stephen Warren
  2016-04-29 14:02 ` Simon Glass
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Warren @ 2016-04-28 22:04 UTC (permalink / raw)
  To: u-boot

From: Stephen Warren <swarren@nvidia.com>

Use the device's own DT offset, not the device's parent's.

Fixes: 43c4d44e3330 ("fdt: implement dev_get_addr_name()")
Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 drivers/core/device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/core/device.c b/drivers/core/device.c
index e7d4fa5d3f19..c6198da17b10 100644
--- a/drivers/core/device.c
+++ b/drivers/core/device.c
@@ -679,8 +679,8 @@ fdt_addr_t dev_get_addr_name(struct udevice *dev, const char *name)
 #if CONFIG_IS_ENABLED(OF_CONTROL)
 	int index;
 
-	index = fdt_find_string(gd->fdt_blob, dev->parent->of_offset,
-				"reg-names", name);
+	index = fdt_find_string(gd->fdt_blob, dev->of_offset, "reg-names",
+				name);
 	if (index < 0)
 		return index;
 
-- 
2.8.1

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

* [U-Boot] [PATCH] fdt: fix dev_get_addr_name node offset
  2016-04-28 22:04 [U-Boot] [PATCH] fdt: fix dev_get_addr_name node offset Stephen Warren
@ 2016-04-29 14:02 ` Simon Glass
  2016-05-07 19:03   ` Simon Glass
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Glass @ 2016-04-29 14:02 UTC (permalink / raw)
  To: u-boot

On 28 April 2016 at 16:04, Stephen Warren <swarren@wwwdotorg.org> wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> Use the device's own DT offset, not the device's parent's.
>
> Fixes: 43c4d44e3330 ("fdt: implement dev_get_addr_name()")
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
> ---
>  drivers/core/device.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

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

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

* [U-Boot] [PATCH] fdt: fix dev_get_addr_name node offset
  2016-04-29 14:02 ` Simon Glass
@ 2016-05-07 19:03   ` Simon Glass
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Glass @ 2016-05-07 19:03 UTC (permalink / raw)
  To: u-boot

On 29 April 2016 at 08:02, Simon Glass <sjg@chromium.org> wrote:
> On 28 April 2016 at 16:04, Stephen Warren <swarren@wwwdotorg.org> wrote:
>> From: Stephen Warren <swarren@nvidia.com>
>>
>> Use the device's own DT offset, not the device's parent's.
>>
>> Fixes: 43c4d44e3330 ("fdt: implement dev_get_addr_name()")
>> Signed-off-by: Stephen Warren <swarren@nvidia.com>
>> ---
>>  drivers/core/device.c | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-dm, thanks!

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

end of thread, other threads:[~2016-05-07 19:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-28 22:04 [U-Boot] [PATCH] fdt: fix dev_get_addr_name node offset Stephen Warren
2016-04-29 14:02 ` Simon Glass
2016-05-07 19:03   ` 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.