diff options
author | Claudiu Manoil <claudiu.manoil@freescale.com> | 2012-07-26 17:47:55 +0300 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2012-07-26 13:24:32 -0500 |
commit | 163f22dc9615e6bc446f50a626af7362cd269876 (patch) | |
tree | 219bc668ab570026d07ff20a6f892e300766d8e1 /arch/powerpc/sysdev/fsl_85xx_cache_ctlr.h | |
parent | e1bd5d8bc13f51c7c991f04255b3868e31933252 (diff) | |
download | talos-op-linux-163f22dc9615e6bc446f50a626af7362cd269876.tar.gz talos-op-linux-163f22dc9615e6bc446f50a626af7362cd269876.zip |
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>
Diffstat (limited to 'arch/powerpc/sysdev/fsl_85xx_cache_ctlr.h')
-rw-r--r-- | arch/powerpc/sysdev/fsl_85xx_cache_ctlr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_ctlr.h b/arch/powerpc/sysdev/fsl_85xx_cache_ctlr.h index 60c9c0bd5ba2..2aa97ddb7b78 100644 --- a/arch/powerpc/sysdev/fsl_85xx_cache_ctlr.h +++ b/arch/powerpc/sysdev/fsl_85xx_cache_ctlr.h @@ -1,5 +1,5 @@ /* - * Copyright 2009-2010 Freescale Semiconductor, Inc + * Copyright 2009-2010, 2012 Freescale Semiconductor, Inc * * QorIQ based Cache Controller Memory Mapped Registers * @@ -91,7 +91,7 @@ struct mpc85xx_l2ctlr { struct sram_parameters { unsigned int sram_size; - uint64_t sram_offset; + phys_addr_t sram_offset; }; extern int instantiate_cache_sram(struct platform_device *dev, |