aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/cpm_common.c
diff options
context:
space:
mode:
authorLEROY Christophe <christophe.leroy@c-s.fr>2015-05-19 06:07:46 -0400
committerScott Wood <scottwood@freescale.com>2015-08-07 23:59:20 -0400
commit934628c7e69dc4481011df2c1db86f6be50dad29 (patch)
tree3a851c45e617c08ea30fac41fbf73dac8805b482 /arch/powerpc/sysdev/cpm_common.c
parent2f7d2b74a9dd9140053f143e1c94da0fef3c1109 (diff)
powerpc: use memset_io() to clear CPM Muram
CPM muram is not cached, so use memset_io() instead of memset() Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc/sysdev/cpm_common.c')
-rw-r--r--arch/powerpc/sysdev/cpm_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/cpm_common.c b/arch/powerpc/sysdev/cpm_common.c
index 4f7869571290..e2ea51961979 100644
--- a/arch/powerpc/sysdev/cpm_common.c
+++ b/arch/powerpc/sysdev/cpm_common.c
@@ -147,7 +147,7 @@ unsigned long cpm_muram_alloc(unsigned long size, unsigned long align)
147 spin_lock_irqsave(&cpm_muram_lock, flags); 147 spin_lock_irqsave(&cpm_muram_lock, flags);
148 cpm_muram_info.alignment = align; 148 cpm_muram_info.alignment = align;
149 start = rh_alloc(&cpm_muram_info, size, "commproc"); 149 start = rh_alloc(&cpm_muram_info, size, "commproc");
150 memset(cpm_muram_addr(start), 0, size); 150 memset_io(cpm_muram_addr(start), 0, size);
151 spin_unlock_irqrestore(&cpm_muram_lock, flags); 151 spin_unlock_irqrestore(&cpm_muram_lock, flags);
152 152
153 return start; 153 return start;