aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMike Frysinger <vapier.adi@gmail.com>2008-11-18 04:48:22 -0500
committerBryan Wu <cooloney@kernel.org>2008-11-18 04:48:22 -0500
commit383163826012d70da070bedd432a74bb8d915315 (patch)
tree35cb64291d7813547fd521238215f78f5624d3d0 /arch
parent4c5b8a648ff0e6bda853cc4094cb7e962ebd8d1d (diff)
Blackfin arch: change return value
change return of close_cplbtab() and fill_cplbtab() to void since we always return 0 and nowhere do we check this Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/blackfin/kernel/cplb-nompu/cplbinit.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/arch/blackfin/kernel/cplb-nompu/cplbinit.c b/arch/blackfin/kernel/cplb-nompu/cplbinit.c
index c17c988fb719..b0d6084de359 100644
--- a/arch/blackfin/kernel/cplb-nompu/cplbinit.c
+++ b/arch/blackfin/kernel/cplb-nompu/cplbinit.c
@@ -20,6 +20,7 @@
20 * to the Free Software Foundation, Inc., 20 * to the Free Software Foundation, Inc.,
21 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 21 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */ 22 */
23
23#include <linux/module.h> 24#include <linux/module.h>
24 25
25#include <asm/blackfin.h> 26#include <asm/blackfin.h>
@@ -169,7 +170,7 @@ static bool __init lock_kernel_check(u32 start, u32 end)
169 return true; 170 return true;
170} 171}
171 172
172static unsigned short __init 173static void __init
173fill_cplbtab(struct cplb_tab *table, 174fill_cplbtab(struct cplb_tab *table,
174 unsigned long start, unsigned long end, 175 unsigned long start, unsigned long end,
175 unsigned long block_size, unsigned long cplb_data) 176 unsigned long block_size, unsigned long cplb_data)
@@ -206,19 +207,12 @@ fill_cplbtab(struct cplb_tab *table,
206 207
207 start += block_size; 208 start += block_size;
208 } 209 }
209 return 0;
210} 210}
211 211
212static unsigned short __init 212static void __init close_cplbtab(struct cplb_tab *table)
213close_cplbtab(struct cplb_tab *table)
214{ 213{
215 214 while (table->pos < table->size)
216 while (table->pos < table->size) {
217
218 table->tab[table->pos++] = 0; 215 table->tab[table->pos++] = 0;
219 table->tab[table->pos++] = 0; /* !CPLB_VALID */
220 }
221 return 0;
222} 216}
223 217
224/* helper function */ 218/* helper function */
@@ -426,7 +420,7 @@ void __init generate_cplb_tables_cpu(unsigned int cpu)
426 } 420 }
427 } 421 }
428 422
429/* close tables */ 423 /* close tables */
430 424
431 close_cplbtab(&cplb.init_i); 425 close_cplbtab(&cplb.init_i);
432 close_cplbtab(&cplb.init_d); 426 close_cplbtab(&cplb.init_d);
@@ -437,5 +431,5 @@ void __init generate_cplb_tables_cpu(unsigned int cpu)
437 cplb.switch_d.tab[cplb.switch_d.pos] = -1; 431 cplb.switch_d.tab[cplb.switch_d.pos] = -1;
438 432
439} 433}
440#endif
441 434
435#endif