Commit 45bcca67 authored by David S. Miller's avatar David S. Miller

[SPARC]: Handle unresolvable resources better in of_device.c

Just leave them as zero if we couldn't calculate it.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b85cdd49
...@@ -550,9 +550,6 @@ static void __init build_device_resources(struct of_device *op, ...@@ -550,9 +550,6 @@ static void __init build_device_resources(struct of_device *op,
r->start = result & 0xffffffff; r->start = result & 0xffffffff;
r->end = result + size - 1; r->end = result + size - 1;
r->flags = flags | ((result >> 32ULL) & 0xffUL); r->flags = flags | ((result >> 32ULL) & 0xffUL);
} else {
r->start = ~0UL;
r->end = ~0UL;
} }
r->name = op->node->name; r->name = op->node->name;
} }
......
...@@ -636,9 +636,6 @@ static void __init build_device_resources(struct of_device *op, ...@@ -636,9 +636,6 @@ static void __init build_device_resources(struct of_device *op,
r->start = result; r->start = result;
r->end = result + size - 1; r->end = result + size - 1;
r->flags = flags; r->flags = flags;
} else {
r->start = ~0UL;
r->end = ~0UL;
} }
r->name = op->node->name; r->name = op->node->name;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment