diff options
author | Rob Herring <robh@kernel.org> | 2018-11-16 15:07:01 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-18 13:35:22 -0800 |
commit | 86ef771ed543ad19fd984e715348eaeeb0b4e035 (patch) | |
tree | 92e27b19a55ec7c039a4941e861f668fd3b0cdc8 /arch/sparc/kernel/of_device_64.c | |
parent | 8119f042d0599df848a5c55ac08b9c2a05c9b359 (diff) | |
download | lwn-86ef771ed543ad19fd984e715348eaeeb0b4e035.tar.gz lwn-86ef771ed543ad19fd984e715348eaeeb0b4e035.zip |
sparc: Use DT node full_name instead of name for resources
The device_node.name pointer is going to be removed. As the
device_node.full_name is now just the name+unit-address instead of the
full path, use the full_name pointer instead. This will add the
unit-address if there is one to the resource name.
Cc: "David S. Miller" <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/of_device_64.c')
-rw-r--r-- | arch/sparc/kernel/of_device_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/of_device_64.c b/arch/sparc/kernel/of_device_64.c index 4b5eabb20ac8..5a9f86b1d4e7 100644 --- a/arch/sparc/kernel/of_device_64.c +++ b/arch/sparc/kernel/of_device_64.c @@ -413,7 +413,7 @@ static void __init build_device_resources(struct platform_device *op, r->end = result + size - 1; r->flags = flags; } - r->name = op->dev.of_node->name; + r->name = op->dev.of_node->full_name; } } |