diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-mv64xxx.c')
-rw-r--r-- | drivers/i2c/busses/i2c-mv64xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-mv64xxx.c b/drivers/i2c/busses/i2c-mv64xxx.c index 5a4945d1dba4..c3869d94ad42 100644 --- a/drivers/i2c/busses/i2c-mv64xxx.c +++ b/drivers/i2c/busses/i2c-mv64xxx.c | |||
@@ -469,7 +469,7 @@ mv64xxx_i2c_map_regs(struct platform_device *pd, | |||
469 | if (!r) | 469 | if (!r) |
470 | return -ENODEV; | 470 | return -ENODEV; |
471 | 471 | ||
472 | size = r->end - r->start + 1; | 472 | size = resource_size(r); |
473 | 473 | ||
474 | if (!request_mem_region(r->start, size, drv_data->adapter.name)) | 474 | if (!request_mem_region(r->start, size, drv_data->adapter.name)) |
475 | return -EBUSY; | 475 | return -EBUSY; |