diff options
Diffstat (limited to 'drivers/pci/proc.c')
-rw-r--r-- | drivers/pci/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/proc.c b/drivers/pci/proc.c index 20dfd77bd8c2..99cf33379769 100644 --- a/drivers/pci/proc.c +++ b/drivers/pci/proc.c | |||
@@ -350,14 +350,14 @@ static int show_device(struct seq_file *m, void *v) | |||
350 | dev->irq); | 350 | dev->irq); |
351 | /* Here should be 7 and not PCI_NUM_RESOURCES as we need to preserve compatibility */ | 351 | /* Here should be 7 and not PCI_NUM_RESOURCES as we need to preserve compatibility */ |
352 | for (i=0; i<7; i++) { | 352 | for (i=0; i<7; i++) { |
353 | u64 start, end; | 353 | resource_size_t start, end; |
354 | pci_resource_to_user(dev, i, &dev->resource[i], &start, &end); | 354 | pci_resource_to_user(dev, i, &dev->resource[i], &start, &end); |
355 | seq_printf(m, "\t%16llx", | 355 | seq_printf(m, "\t%16llx", |
356 | (unsigned long long)(start | | 356 | (unsigned long long)(start | |
357 | (dev->resource[i].flags & PCI_REGION_FLAG_MASK))); | 357 | (dev->resource[i].flags & PCI_REGION_FLAG_MASK))); |
358 | } | 358 | } |
359 | for (i=0; i<7; i++) { | 359 | for (i=0; i<7; i++) { |
360 | u64 start, end; | 360 | resource_size_t start, end; |
361 | pci_resource_to_user(dev, i, &dev->resource[i], &start, &end); | 361 | pci_resource_to_user(dev, i, &dev->resource[i], &start, &end); |
362 | seq_printf(m, "\t%16llx", | 362 | seq_printf(m, "\t%16llx", |
363 | dev->resource[i].start < dev->resource[i].end ? | 363 | dev->resource[i].start < dev->resource[i].end ? |