diff options
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/address.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c index da1f4b9605df..72c33fbe451d 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c | |||
@@ -610,6 +610,6 @@ void __iomem *of_iomap(struct device_node *np, int index) | |||
610 | if (of_address_to_resource(np, index, &res)) | 610 | if (of_address_to_resource(np, index, &res)) |
611 | return NULL; | 611 | return NULL; |
612 | 612 | ||
613 | return ioremap(res.start, 1 + res.end - res.start); | 613 | return ioremap(res.start, resource_size(&res)); |
614 | } | 614 | } |
615 | EXPORT_SYMBOL(of_iomap); | 615 | EXPORT_SYMBOL(of_iomap); |