[SPARC]: Encode I/O space into resource flags on sparc32.

On sparc64 we don't need to do this because the resource
values are large enough to encode the full physical address.

Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

David S. Miller and committed by
David S. Miller
95714e12 cf44bbc2

+2 -2
+2 -2
arch/sparc/kernel/of_device.c
··· 488 488 build_res: 489 489 memset(r, 0, sizeof(*r)); 490 490 if (result != OF_BAD_ADDR) { 491 - r->start = result; 491 + r->start = result & 0xffffffff; 492 492 r->end = result + size - 1; 493 - r->flags = flags; 493 + r->flags = flags | ((result >> 32ULL) & 0xffUL); 494 494 } else { 495 495 r->start = ~0UL; 496 496 r->end = ~0UL;