diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-11-18 04:48:22 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-11-18 04:48:22 -0500 |
commit | 4c5b8a648ff0e6bda853cc4094cb7e962ebd8d1d (patch) | |
tree | 08bf18a2f723ab3178ce3277c437ce6a77a4f7ad /arch/blackfin/kernel/cplb-nompu/cplbinit.c | |
parent | ff4c02e4be00dccfb4b7baa8e56300b6ab3e290a (diff) |
Blackfin arch: remove pointless define IN_KERNEL
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/cplbinit.c')
-rw-r--r-- | arch/blackfin/kernel/cplb-nompu/cplbinit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/blackfin/kernel/cplb-nompu/cplbinit.c b/arch/blackfin/kernel/cplb-nompu/cplbinit.c index 8966c706b71a..c17c988fb719 100644 --- a/arch/blackfin/kernel/cplb-nompu/cplbinit.c +++ b/arch/blackfin/kernel/cplb-nompu/cplbinit.c | |||
@@ -160,13 +160,13 @@ static struct cplb_desc cplb_data[] = { | |||
160 | }, | 160 | }, |
161 | }; | 161 | }; |
162 | 162 | ||
163 | static u16 __init lock_kernel_check(u32 start, u32 end) | 163 | static bool __init lock_kernel_check(u32 start, u32 end) |
164 | { | 164 | { |
165 | if (start >= (u32)_end || end <= (u32)_stext) | 165 | if (start >= (u32)_end || end <= (u32)_stext) |
166 | return 0; | 166 | return false; |
167 | 167 | ||
168 | /* This cplb block overlapped with kernel area. */ | 168 | /* This cplb block overlapped with kernel area. */ |
169 | return IN_KERNEL; | 169 | return true; |
170 | } | 170 | } |
171 | 171 | ||
172 | static unsigned short __init | 172 | static unsigned short __init |
@@ -198,7 +198,7 @@ fill_cplbtab(struct cplb_tab *table, | |||
198 | 198 | ||
199 | table->tab[table->pos++] = start; | 199 | table->tab[table->pos++] = start; |
200 | 200 | ||
201 | if (lock_kernel_check(start, start + block_size) == IN_KERNEL) | 201 | if (lock_kernel_check(start, start + block_size)) |
202 | table->tab[table->pos++] = | 202 | table->tab[table->pos++] = |
203 | cplb_data | CPLB_LOCK | CPLB_DIRTY; | 203 | cplb_data | CPLB_LOCK | CPLB_DIRTY; |
204 | else | 204 | else |