summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/uio
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/uio')
-rw-r--r--kernel/drivers/uio/uio_dmem_genirq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/uio/uio_dmem_genirq.c b/kernel/drivers/uio/uio_dmem_genirq.c
index 915facbf5..e1134a4d9 100644
--- a/kernel/drivers/uio/uio_dmem_genirq.c
+++ b/kernel/drivers/uio/uio_dmem_genirq.c
@@ -229,7 +229,7 @@ static int uio_dmem_genirq_probe(struct platform_device *pdev)
++uiomem;
}
- priv->dmem_region_start = i;
+ priv->dmem_region_start = uiomem - &uioinfo->mem[0];
priv->num_dmem_regions = pdata->num_dynamic_regions;
for (i = 0; i < pdata->num_dynamic_regions; ++i) {