diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-omap.c')
-rw-r--r-- | drivers/i2c/busses/i2c-omap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index c73475dd0fba..b606db85525d 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c | |||
@@ -828,7 +828,7 @@ omap_i2c_probe(struct platform_device *pdev) | |||
828 | dev->idle = 1; | 828 | dev->idle = 1; |
829 | dev->dev = &pdev->dev; | 829 | dev->dev = &pdev->dev; |
830 | dev->irq = irq->start; | 830 | dev->irq = irq->start; |
831 | dev->base = ioremap(mem->start, mem->end - mem->start + 1); | 831 | dev->base = ioremap(mem->start, resource_size(mem)); |
832 | if (!dev->base) { | 832 | if (!dev->base) { |
833 | r = -ENOMEM; | 833 | r = -ENOMEM; |
834 | goto err_free_mem; | 834 | goto err_free_mem; |