Commit 28c1b6d60e3ad0aecf48aaefc6995904e2ab1b9e

Authored by Felipe Balbi
Committed by Grant Likely
1 parent 3da3f872aa

of: address: use resource_size helper

that should be the approved way of calculating
the size of resources. No functional changes.

Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/of/address.c
... ... @@ -610,7 +610,7 @@
610 610 if (of_address_to_resource(np, index, &res))
611 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 615 EXPORT_SYMBOL(of_iomap);