aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/setup-res.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-06-12 20:06:02 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-27 12:24:00 -0400
commite31dd6e4520439ceae4753f32dd2da2c345e929a (patch)
treefea87cfb0077135c6dcaf7849e518ee31733b0fc /drivers/pci/setup-res.c
parentd75fc8bbccf7c019994bcfd6255d5b56335ed21d (diff)
[PATCH] 64bit resource: change pci core and arch code to use resource_size_t
Based on a patch series originally from Vivek Goyal <vgoyal@in.ibm.com> Cc: Vivek Goyal <vgoyal@in.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/setup-res.c')
-rw-r--r--drivers/pci/setup-res.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/setup-res.c b/drivers/pci/setup-res.c
index f5ff0d3ba620..ab78e4bbdd83 100644
--- a/drivers/pci/setup-res.c
+++ b/drivers/pci/setup-res.c
@@ -121,7 +121,7 @@ int pci_assign_resource(struct pci_dev *dev, int resno)
121{ 121{
122 struct pci_bus *bus = dev->bus; 122 struct pci_bus *bus = dev->bus;
123 struct resource *res = dev->resource + resno; 123 struct resource *res = dev->resource + resno;
124 unsigned long size, min, align; 124 resource_size_t size, min, align;
125 int ret; 125 int ret;
126 126
127 size = res->end - res->start + 1; 127 size = res->end - res->start + 1;
@@ -209,7 +209,7 @@ pdev_sort_resources(struct pci_dev *dev, struct resource_list *head)
209 for (i = 0; i < PCI_NUM_RESOURCES; i++) { 209 for (i = 0; i < PCI_NUM_RESOURCES; i++) {
210 struct resource *r; 210 struct resource *r;
211 struct resource_list *list, *tmp; 211 struct resource_list *list, *tmp;
212 unsigned long r_align; 212 resource_size_t r_align;
213 213
214 r = &dev->resource[i]; 214 r = &dev->resource[i];
215 r_align = r->end - r->start; 215 r_align = r->end - r->start;
@@ -225,7 +225,7 @@ pdev_sort_resources(struct pci_dev *dev, struct resource_list *head)
225 } 225 }
226 r_align = (i < PCI_BRIDGE_RESOURCES) ? r_align + 1 : r->start; 226 r_align = (i < PCI_BRIDGE_RESOURCES) ? r_align + 1 : r->start;
227 for (list = head; ; list = list->next) { 227 for (list = head; ; list = list->next) {
228 unsigned long align = 0; 228 resource_size_t align = 0;
229 struct resource_list *ln = list->next; 229 struct resource_list *ln = list->next;
230 int idx; 230 int idx;
231 231