aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vlynq
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/vlynq')
-rw-r--r--drivers/vlynq/vlynq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vlynq/vlynq.c b/drivers/vlynq/vlynq.c
index ba3d71f5c7d0..9554ad5f9af7 100644
--- a/drivers/vlynq/vlynq.c
+++ b/drivers/vlynq/vlynq.c
@@ -702,7 +702,7 @@ static int vlynq_probe(struct platform_device *pdev)
702 dev->mem_start = mem_res->start; 702 dev->mem_start = mem_res->start;
703 dev->mem_end = mem_res->end; 703 dev->mem_end = mem_res->end;
704 704
705 len = regs_res->end - regs_res->start; 705 len = resource_size(regs_res);
706 if (!request_mem_region(regs_res->start, len, dev_name(&dev->dev))) { 706 if (!request_mem_region(regs_res->start, len, dev_name(&dev->dev))) {
707 printk(KERN_ERR "%s: Can't request vlynq registers\n", 707 printk(KERN_ERR "%s: Can't request vlynq registers\n",
708 dev_name(&dev->dev)); 708 dev_name(&dev->dev));