diff options
author | Ovidiu Panait <ovpanait@gmail.com> | 2020-04-20 10:31:44 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-01 11:34:01 -0400 |
commit | 5cf9e3b237f24e66ff1a657e954ffe3dc92e09eb (patch) | |
tree | fc10bdfe35a8b2d058d8b4b886159b104c2865ae /common | |
parent | 9297e366d6a847f7ac64f4ec7102b236d8ebe1f4 (diff) | |
download | u-boot-5cf9e3b237f24e66ff1a657e954ffe3dc92e09eb.tar.gz u-boot-5cf9e3b237f24e66ff1a657e954ffe3dc92e09eb.tar.xz u-boot-5cf9e3b237f24e66ff1a657e954ffe3dc92e09eb.zip |
common/board_r: arm: Merge initr_enable_interrupts into interrupts_init
initr_enable_interrupts() is an ARM-specific wrapper over
enable_interrupts(), which is run during the common init sequence. It can
be eliminated by moving the enable_interrupts() call to the end of
interrupt_init() function, in arch/arm/lib/interrupts*.c.
Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/board_r.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/common/board_r.c b/common/board_r.c index 0bbeaa7594..bdb0389e31 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -518,15 +518,6 @@ static int initr_api(void) } #endif -/* enable exceptions */ -#ifdef CONFIG_ARM -static int initr_enable_interrupts(void) -{ - enable_interrupts(); - return 0; -} -#endif - #ifdef CONFIG_CMD_NET static int initr_ethaddr(void) { @@ -813,9 +804,6 @@ static init_fnc_t init_sequence_r[] = { initr_kgdb, #endif interrupt_init, -#ifdef CONFIG_ARM - initr_enable_interrupts, -#endif #if defined(CONFIG_MICROBLAZE) || defined(CONFIG_M68K) timer_init, /* initialize timer */ #endif |