ARM: simplify __iounmap() when dealing with section based mapping
authorNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 16 Sep 2011 02:12:19 +0000 (22:12 -0400)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 26 Oct 2013 22:48:07 +0000 (01:48 +0300)
commitc0b04aa24f75835301687a8f9d1121620dc6fea3
treea0cd4b4306fb878d86c160e42cafa9fcaff3d496
parenta0b9ad367e1f66dfc6d37f95695704744c9bee41
ARM: simplify __iounmap() when dealing with section based mapping

Firstly, there is no need to have a double pointer here as we're only
walking the vmlist and not modifying it.

Secondly, for the same reason, we don't need a write lock but only a
read lock here, since the lock only protects the coherency of the list
nothing else.

Lastly, the reason for holding a lock is not what the comment says, so
let's remove that misleading piece of information.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Conflicts:

arch/arm/mm/ioremap.c
arch/arm/mm/ioremap.c