aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/uio/uio_pdrv_genirq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/uio/uio_pdrv_genirq.c')
-rw-r--r--drivers/uio/uio_pdrv_genirq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c
index 0f424af7f109..31e799d9efe5 100644
--- a/drivers/uio/uio_pdrv_genirq.c
+++ b/drivers/uio/uio_pdrv_genirq.c
@@ -137,7 +137,7 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev)
137 137
138 uiomem->memtype = UIO_MEM_PHYS; 138 uiomem->memtype = UIO_MEM_PHYS;
139 uiomem->addr = r->start; 139 uiomem->addr = r->start;
140 uiomem->size = r->end - r->start + 1; 140 uiomem->size = resource_size(r);
141 ++uiomem; 141 ++uiomem;
142 } 142 }
143 143