[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>
This commit is contained in:
David S. Miller 2007-03-01 18:08:05 -08:00
parent b85cdd490a
commit 45bcca67ed
2 changed files with 0 additions and 6 deletions

View 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;
}

View 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;
}