aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/sysdev/fsl_85xx_l2ctlr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c b/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c
index cc8d6556d799..23b85ac9fc56 100644
--- a/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c
+++ b/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c
@@ -94,14 +94,14 @@ static int __devinit mpc85xx_l2ctlr_of_probe(struct platform_device *dev,
94 l2cache_size = *prop; 94 l2cache_size = *prop;
95 95
96 sram_params.sram_size = get_cache_sram_size(); 96 sram_params.sram_size = get_cache_sram_size();
97 if (sram_params.sram_size <= 0) { 97 if ((int)sram_params.sram_size <= 0) {
98 dev_err(&dev->dev, 98 dev_err(&dev->dev,
99 "Entire L2 as cache, Aborting Cache-SRAM stuff\n"); 99 "Entire L2 as cache, Aborting Cache-SRAM stuff\n");
100 return -EINVAL; 100 return -EINVAL;
101 } 101 }
102 102
103 sram_params.sram_offset = get_cache_sram_offset(); 103 sram_params.sram_offset = get_cache_sram_offset();
104 if (sram_params.sram_offset <= 0) { 104 if ((int64_t)sram_params.sram_offset <= 0) {
105 dev_err(&dev->dev, 105 dev_err(&dev->dev,
106 "Entire L2 as cache, provide a valid sram offset\n"); 106 "Entire L2 as cache, provide a valid sram offset\n");
107 return -EINVAL; 107 return -EINVAL;