Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28c1b6d6 authored by Felipe Balbi's avatar Felipe Balbi Committed by Grant Likely
Browse files

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: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 3da3f872
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -610,6 +610,6 @@ void __iomem *of_iomap(struct device_node *np, int index)
	if (of_address_to_resource(np, index, &res))
		return NULL;

	return ioremap(res.start, 1 + res.end - res.start);
	return ioremap(res.start, resource_size(&res));
}
EXPORT_SYMBOL(of_iomap);