mmc: tmio: only access registers above 0xff, if available
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 9 Mar 2011 16:28:55 +0000 (17:28 +0100)
committerChris Ball <cjb@laptop.org>
Fri, 25 Mar 2011 14:39:49 +0000 (10:39 -0400)
Not all tmio implementations have registers above oxff. Accessing
them on thise platforms is dangerous. In some cases it leads to
address wrapping to addresses below 0x100, which corrupts random
unrelated registers.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Chris Ball <cjb@laptop.org>

No differences found