summaryrefslogtreecommitdiff
path: root/drivers/parport/parport_ax88796.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/parport/parport_ax88796.c')
-rw-r--r--drivers/parport/parport_ax88796.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/parport/parport_ax88796.c b/drivers/parport/parport_ax88796.c
index 2c5ac2bf5c56..844f6137970a 100644
--- a/drivers/parport/parport_ax88796.c
+++ b/drivers/parport/parport_ax88796.c
@@ -293,7 +293,7 @@ static int parport_ax88796_probe(struct platform_device *pdev)
goto exit_mem;
}
- size = (res->end - res->start) + 1;
+ size = resource_size(res);
spacing = size / 3;
dd->io = request_mem_region(res->start, size, pdev->name);