Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
[linux-2.6.git] / arch / powerpc / sysdev / xics / icp-native.c
index ba382b5..50e32af 100644 (file)
@@ -256,7 +256,7 @@ static int __init icp_native_init_one_node(struct device_node *np,
                        return -1;
                }
 
-               if (icp_native_map_one_cpu(*indx, r.start, r.end - r.start))
+               if (icp_native_map_one_cpu(*indx, r.start, resource_size(&r)))
                        return -1;
 
                (*indx)++;