ARM: OMAP: OCM RAM: use memset_io() when clearing SRAM
authorPaul Walmsley <paul@pwsan.com>
Fri, 13 Apr 2012 12:34:29 +0000 (06:34 -0600)
committerPaul Walmsley <paul@pwsan.com>
Fri, 13 Apr 2012 12:34:29 +0000 (06:34 -0600)
commit7cc0442cf2c2cc0efd117051d20e531f7cb2d604
treeebc144d0fd43a2166a8e978dded3c2e1dffba52b
parenta7022d600df1396cba23637b77b352d27d77b284
ARM: OMAP: OCM RAM: use memset_io() when clearing SRAM

We currently treat the OCM RAM memory as memory that hangs off an
I/O bus, so use memset_io() to clear it rather than memset().
This also takes care of this sparse warning:

arch/arm/plat-omap/sram.c:199:9: warning: cast removes address space of expression

There is still one SRAM-related sparse warning, but it appears that
fixing it correctly will take some time and thought.

N.B., at some point, the OCM RAM IP block interface code should probably
be reimplemented as an MTD device or something similar under drivers/.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/plat-omap/sram.c