diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-au1550.c')
-rw-r--r-- | drivers/i2c/busses/i2c-au1550.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-au1550.c b/drivers/i2c/busses/i2c-au1550.c index f78ce523e3db..532828bc50e6 100644 --- a/drivers/i2c/busses/i2c-au1550.c +++ b/drivers/i2c/busses/i2c-au1550.c | |||
@@ -389,7 +389,7 @@ i2c_au1550_probe(struct platform_device *pdev) | |||
389 | goto out; | 389 | goto out; |
390 | } | 390 | } |
391 | 391 | ||
392 | priv->ioarea = request_mem_region(r->start, r->end - r->start + 1, | 392 | priv->ioarea = request_mem_region(r->start, resource_size(r), |
393 | pdev->name); | 393 | pdev->name); |
394 | if (!priv->ioarea) { | 394 | if (!priv->ioarea) { |
395 | ret = -EBUSY; | 395 | ret = -EBUSY; |