diff options
author | Becky Bruce | 2010-06-17 11:37:23 -0500 |
---|---|---|
committer | Kumar Gala | 2010-07-16 10:55:09 -0500 |
commit | e71755f887ca03a27641947a97210ac273e146ee (patch) | |
tree | 8372ce1ffc62b7615c88b82c5ee9facfcaf610c0 /arch/powerpc/include/asm/fsl_law.h | |
parent | 70e02bca6bdd18e03a5e2c0265126ef277e635b3 (diff) |
drivers/misc/fsl_law.c: Rearrange code to avoid duplication
The current code redefines functions based on FSL_CORENET_ vs not -
create macros/inlines instead that hide the differences.
Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/fsl_law.h')
-rw-r--r-- | arch/powerpc/include/asm/fsl_law.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/fsl_law.h b/arch/powerpc/include/asm/fsl_law.h index 34c56a259a6..12ba1a6a041 100644 --- a/arch/powerpc/include/asm/fsl_law.h +++ b/arch/powerpc/include/asm/fsl_law.h @@ -47,6 +47,7 @@ enum law_size { }; #define law_size_bits(sz) (__ilog2_u64(sz) - 1) +#define lawar_size(x) (1ULL << ((x & 0x3f) + 1)) #ifdef CONFIG_FSL_CORENET enum law_trgt_if { |