]> asedeno.scripts.mit.edu Git - linux.git/commit
powerpc/85xx: Fix sram_offset parameter type
authorClaudiu Manoil <claudiu.manoil@freescale.com>
Thu, 26 Jul 2012 14:47:55 +0000 (17:47 +0300)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 26 Jul 2012 18:24:32 +0000 (13:24 -0500)
commit163f22dc9615e6bc446f50a626af7362cd269876
tree219bc668ab570026d07ff20a6f892e300766d8e1
parente1bd5d8bc13f51c7c991f04255b3868e31933252
powerpc/85xx: Fix sram_offset parameter type

The sram_offset parameter represents a physical address and should be of
type phys_addr_t. As part of this fix, the extraction of sram_params is
being cleaned-up and fixed.

This patch fixes now the case when the offset value of 0xfff00000 was being
rejected by the driver (returning -EINVAL), although this is a valid offset
value.

Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/fsl_85xx_cache_ctlr.h
arch/powerpc/sysdev/fsl_85xx_l2ctlr.c