summaryrefslogtreecommitdiff
path: root/arch/blackfin/kernel/cplb-nompu
diff options
context:
space:
mode:
authorMike Frysinger <vapier.adi@gmail.com>2008-08-13 16:16:11 +0800
committerBryan Wu <cooloney@kernel.org>2008-08-13 16:16:11 +0800
commit07aa7be5708afb3d9afa68f6f853c98e51bc64b3 (patch)
tree808fe87c382fb0a1b9432c75989da81f7f9efdd1 /arch/blackfin/kernel/cplb-nompu
parent17e89bcfa12f71b840361da07fe6c2f9c48d0605 (diff)
Blackfin arch: convert L2 defines to be the same as the L1 defines
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/kernel/cplb-nompu')
-rw-r--r--arch/blackfin/kernel/cplb-nompu/cplbinit.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/blackfin/kernel/cplb-nompu/cplbinit.c b/arch/blackfin/kernel/cplb-nompu/cplbinit.c
index 224e7cc30bc5..728f708d3981 100644
--- a/arch/blackfin/kernel/cplb-nompu/cplbinit.c
+++ b/arch/blackfin/kernel/cplb-nompu/cplbinit.c
@@ -164,17 +164,13 @@ static struct cplb_desc cplb_data[] = {
.name = "Asynchronous Memory Banks",
},
{
-#ifdef L2_START
.start = L2_START,
.end = L2_START + L2_LENGTH,
.psize = SIZE_1M,
.attr = SWITCH_T | I_CPLB | D_CPLB,
.i_conf = L2_MEMORY,
.d_conf = L2_MEMORY,
- .valid = 1,
-#else
- .valid = 0,
-#endif
+ .valid = (L2_LENGTH > 0),
.name = "L2 Memory",
},
{