]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Unify timer_init() and cpu_init() prototypes
authorWolfgang Denk <wd@denx.de>
Sat, 30 Jul 2011 12:32:45 +0000 (12:32 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 1 Aug 2011 13:10:15 +0000 (15:10 +0200)
Clean up some duplicated prototype declarations.
Get rid of now useless AVR32 initcalls.h file.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert Aribaud <albert.aribaud@free.fr>
Cc: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Cc: Graeme Russ <graeme.russ@gmail.com>
arch/arm/include/asm/u-boot-arm.h
arch/avr32/include/asm/initcalls.h [deleted file]
arch/avr32/lib/board.c
arch/x86/include/asm/u-boot-x86.h
include/common.h

index e3fbb53d4da8b6e5fc83871a9ff66b2e5f6a5c45..d3308f7a811dc5570a4421fae6bbbcc42df40122 100644 (file)
@@ -63,7 +63,4 @@ void  reset_timer_masked      (void);
 ulong  get_timer_masked        (void);
 void   udelay_masked           (unsigned long usec);
 
-/* cpu/.../timer.c */
-int    timer_init              (void);
-
 #endif /* _U_BOOT_ARM_H_ */
diff --git a/arch/avr32/include/asm/initcalls.h b/arch/avr32/include/asm/initcalls.h
deleted file mode 100644 (file)
index 57a278b..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (C) 2005, 2006 Atmel Corporation
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-#ifndef __ASM_AVR32_INITCALLS_H__
-#define __ASM_AVR32_INITCALLS_H__
-
-#include <config.h>
-
-extern int cpu_init(void);
-extern int timer_init(void);
-
-#endif /* __ASM_AVR32_INITCALLS_H__ */
index e69f8d184e9eff8543f2d67aada3051c84416e47..65473a107bc025c1882aa662ab5810711b182853 100644 (file)
@@ -30,7 +30,6 @@
 #include <miiphy.h>
 #endif
 
-#include <asm/initcalls.h>
 #include <asm/sections.h>
 #include <asm/arch/mmu.h>
 
index 944e1a20057a7b80c9e7757670e90aff5ea2691c..4f0d2c7e7e316e2907331a274d8a8e7e9c2df69c 100644 (file)
@@ -36,7 +36,6 @@ typedef void (timer_fnc_t) (void);
 int register_timer_isr (timer_fnc_t *isr_func);
 
 /* Architecture specific - can be in arch/x86/cpu/, arch/x86/lib/, or $(BOARD)/ */
-int timer_init(void);
 int dram_init_f(void);
 
 /* cpu/.../interrupts.c */
index b994e705f3a5f98042cbefc4d3eb03e2834e325c..12a10741bd70dd9a554b8903c66c8fd70088f456 100644 (file)
@@ -222,6 +222,9 @@ typedef void (interrupt_handler_t)(void *);
 
 void   hang            (void) __attribute__ ((noreturn));
 
+int    timer_init(void);
+int    cpu_init(void);
+
 /* */
 phys_size_t initdram (int);
 int    display_options (void);