diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-03-01 21:08:05 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-03-02 18:22:50 -0500 |
commit | 45bcca67ed6437815305fdef38f441358b6a7756 (patch) | |
tree | de80e6e5d00c547279c5378d2c3e68bf8c1bec6f /arch/sparc | |
parent | b85cdd490ac52ee039636f809b9b98b1300fcf3d (diff) |
[SPARC]: Handle unresolvable resources better in of_device.c
Just leave them as zero if we couldn't calculate it.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/of_device.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/sparc/kernel/of_device.c b/arch/sparc/kernel/of_device.c index 798b140fabeb..48c24f7518c2 100644 --- a/arch/sparc/kernel/of_device.c +++ b/arch/sparc/kernel/of_device.c | |||
@@ -550,9 +550,6 @@ static void __init build_device_resources(struct of_device *op, | |||
550 | r->start = result & 0xffffffff; | 550 | r->start = result & 0xffffffff; |
551 | r->end = result + size - 1; | 551 | r->end = result + size - 1; |
552 | r->flags = flags | ((result >> 32ULL) & 0xffUL); | 552 | r->flags = flags | ((result >> 32ULL) & 0xffUL); |
553 | } else { | ||
554 | r->start = ~0UL; | ||
555 | r->end = ~0UL; | ||
556 | } | 553 | } |
557 | r->name = op->node->name; | 554 | r->name = op->node->name; |
558 | } | 555 | } |