aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/prom_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/prom_parse.c')
-rw-r--r--arch/powerpc/kernel/prom_parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/prom_parse.c b/arch/powerpc/kernel/prom_parse.c
index 5b764277f470..309ae1d5fa77 100644
--- a/arch/powerpc/kernel/prom_parse.c
+++ b/arch/powerpc/kernel/prom_parse.c
@@ -503,9 +503,9 @@ static int __of_address_to_resource(struct device_node *dev, u32 *addrp,
503 return -EINVAL; 503 return -EINVAL;
504 memset(r, 0, sizeof(struct resource)); 504 memset(r, 0, sizeof(struct resource));
505 if (flags & IORESOURCE_IO) { 505 if (flags & IORESOURCE_IO) {
506 unsigned int port; 506 unsigned long port;
507 port = pci_address_to_pio(taddr); 507 port = pci_address_to_pio(taddr);
508 if (port == (unsigned int)-1) 508 if (port == (unsigned long)-1)
509 return -EINVAL; 509 return -EINVAL;
510 r->start = port; 510 r->start = port;
511 r->end = port + size - 1; 511 r->end = port + size - 1;