Merge branch 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6.git] / drivers / uio / uio_pdrv_genirq.c
index f8f81db..bae96d2 100644 (file)
@@ -162,7 +162,7 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev)
 
                uiomem->memtype = UIO_MEM_PHYS;
                uiomem->addr = r->start;
-               uiomem->size = r->end - r->start + 1;
+               uiomem->size = resource_size(r);
                ++uiomem;
        }