]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerNicolas Pitre <nico@fluxnic.net>
Fri, 18 Nov 2011 18:54:03 +0000 (13:54 -0500)
commite40229c93b87a2441e5dcb32bfaf7869d84c76f4
tree0e2e2c5937c54c4e8fc3ab12296db21179d2bd5b
parent549158d2ab01e8370d2773044fe09738a26f7086
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>
arch/arm/mm/ioremap.c