aboutsummaryrefslogtreecommitdiff
path: root/drivers/vlynq/vlynq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/vlynq/vlynq.c')
-rw-r--r--drivers/vlynq/vlynq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/vlynq/vlynq.c b/drivers/vlynq/vlynq.c
index 7b07135ab26e..c0227f9418eb 100644
--- a/drivers/vlynq/vlynq.c
+++ b/drivers/vlynq/vlynq.c
@@ -762,7 +762,8 @@ static int vlynq_remove(struct platform_device *pdev)
device_unregister(&dev->dev);
iounmap(dev->local);
- release_mem_region(dev->regs_start, dev->regs_end - dev->regs_start);
+ release_mem_region(dev->regs_start,
+ dev->regs_end - dev->regs_start + 1);
kfree(dev);