diff options
Diffstat (limited to 'arch/powerpc/sysdev/fsl_85xx_l2ctlr.c')
| -rw-r--r-- | arch/powerpc/sysdev/fsl_85xx_l2ctlr.c | 4 | 
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 2b9f0c92532..5f88797dce7 100644 --- a/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c +++ b/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c @@ -93,14 +93,14 @@ static int __devinit mpc85xx_l2ctlr_of_probe(struct platform_device *dev)  	l2cache_size = *prop;  	sram_params.sram_size  = get_cache_sram_size(); -	if (sram_params.sram_size <= 0) { +	if ((int)sram_params.sram_size <= 0) {  		dev_err(&dev->dev,  			"Entire L2 as cache, Aborting Cache-SRAM stuff\n");  		return -EINVAL;  	}  	sram_params.sram_offset  = get_cache_sram_offset(); -	if (sram_params.sram_offset <= 0) { +	if ((int64_t)sram_params.sram_offset <= 0) {  		dev_err(&dev->dev,  			"Entire L2 as cache, provide a valid sram offset\n");  		return -EINVAL;  |