]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SPARC]: Handle unresolvable resources better in of_device.c
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 2 Mar 2007 02:08:05 +0000 (18:08 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 2 Mar 2007 23:22:50 +0000 (15:22 -0800)
Just leave them as zero if we couldn't calculate it.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/of_device.c
arch/sparc64/kernel/of_device.c

index 798b140fabebbc8e31e6b47f2d787959162a7bd4..48c24f7518c24e3ccd8c3b6ae127111c5c194518 100644 (file)
@@ -550,9 +550,6 @@ static void __init build_device_resources(struct of_device *op,
                        r->start = result & 0xffffffff;
                        r->end = result + size - 1;
                        r->flags = flags | ((result >> 32ULL) & 0xffUL);
-               } else {
-                       r->start = ~0UL;
-                       r->end = ~0UL;
                }
                r->name = op->node->name;
        }
index 1f4598524bdd7a4702bd1b452ec06851af5b5428..fb9bf1e4d036138214d418081c7c38d54340a060 100644 (file)
@@ -636,9 +636,6 @@ static void __init build_device_resources(struct of_device *op,
                        r->start = result;
                        r->end = result + size - 1;
                        r->flags = flags;
-               } else {
-                       r->start = ~0UL;
-                       r->end = ~0UL;
                }
                r->name = op->node->name;
        }