treewide: Convert uses of struct resource to resource_size(ptr)
[deliverable/linux.git] / arch / mips / pci / pci-vr41xx.c
index 56525711f8b75deb270b6c6b7f32db0b38289029..444b8d8004ad392d34dd69e3f63006365396df43 100644 (file)
@@ -305,7 +305,7 @@ static int __init vr41xx_pciu_init(void)
                struct resource *res = vr41xx_pci_controller.io_resource;
                master = setup->master_io;
                io_map_base = ioremap(master->bus_base_address,
-                                     res->end - res->start + 1);
+                                     resource_size(res));
                if (!io_map_base)
                        return -EBUSY;
 
This page took 0.025539 seconds and 5 git commands to generate.