diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-highlander.c')
-rw-r--r-- | drivers/i2c/busses/i2c-highlander.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-highlander.c b/drivers/i2c/busses/i2c-highlander.c index e5a8dae4a289..87ecace415da 100644 --- a/drivers/i2c/busses/i2c-highlander.c +++ b/drivers/i2c/busses/i2c-highlander.c | |||
@@ -373,7 +373,7 @@ static int __devinit highlander_i2c_probe(struct platform_device *pdev) | |||
373 | if (unlikely(!dev)) | 373 | if (unlikely(!dev)) |
374 | return -ENOMEM; | 374 | return -ENOMEM; |
375 | 375 | ||
376 | dev->base = ioremap_nocache(res->start, res->end - res->start + 1); | 376 | dev->base = ioremap_nocache(res->start, resource_size(res)); |
377 | if (unlikely(!dev->base)) { | 377 | if (unlikely(!dev->base)) { |
378 | ret = -ENXIO; | 378 | ret = -ENXIO; |
379 | goto err; | 379 | goto err; |