Skip to content

Commit

Permalink
Blackfin arch: mark some functions as __init as they are only called …
Browse files Browse the repository at this point in the history
…from __init functions

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Aug 14, 2008
1 parent 7ab37da commit 9216bbc
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions arch/blackfin/kernel/cplb-mpu/cacheinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <asm/cplbinit.h>

#if defined(CONFIG_BFIN_ICACHE)
void bfin_icache_init(void)
void __init bfin_icache_init(void)
{
unsigned long ctrl;
int i;
Expand All @@ -43,7 +43,7 @@ void bfin_icache_init(void)
#endif

#if defined(CONFIG_BFIN_DCACHE)
void bfin_dcache_init(void)
void __init bfin_dcache_init(void)
{
unsigned long ctrl;
int i;
Expand Down
4 changes: 2 additions & 2 deletions arch/blackfin/kernel/cplb-nompu/cacheinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <asm/cplbinit.h>

#if defined(CONFIG_BFIN_ICACHE)
void bfin_icache_init(void)
void __init bfin_icache_init(void)
{
unsigned long *table = icplb_table;
unsigned long ctrl;
Expand All @@ -47,7 +47,7 @@ void bfin_icache_init(void)
#endif

#if defined(CONFIG_BFIN_DCACHE)
void bfin_dcache_init(void)
void __init bfin_dcache_init(void)
{
unsigned long *table = dcplb_table;
unsigned long ctrl;
Expand Down
2 changes: 1 addition & 1 deletion arch/blackfin/mach-bf527/ints-priority.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <linux/irq.h>
#include <asm/blackfin.h>

void program_IAR(void)
void __init program_IAR(void)
{
/* Program the IAR0 Register with the configured priority */
bfin_write_SIC_IAR0(((CONFIG_IRQ_PLL_WAKEUP - 7) << IRQ_PLL_WAKEUP_POS) |
Expand Down
2 changes: 1 addition & 1 deletion arch/blackfin/mach-bf533/ints-priority.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <linux/irq.h>
#include <asm/blackfin.h>

void program_IAR(void)
void __init program_IAR(void)
{
/* Program the IAR0 Register with the configured priority */
bfin_write_SIC_IAR0(((CONFIG_PLLWAKE_ERROR - 7) << PLLWAKE_ERROR_POS) |
Expand Down
2 changes: 1 addition & 1 deletion arch/blackfin/mach-bf537/ints-priority.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <linux/irq.h>
#include <asm/blackfin.h>

void program_IAR(void)
void __init program_IAR(void)
{
/* Program the IAR0 Register with the configured priority */
bfin_write_SIC_IAR0(((CONFIG_IRQ_PLL_WAKEUP - 7) << IRQ_PLL_WAKEUP_POS) |
Expand Down
2 changes: 1 addition & 1 deletion arch/blackfin/mach-bf548/ints-priority.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <linux/irq.h>
#include <asm/blackfin.h>

void program_IAR(void)
void __init program_IAR(void)
{
/* Program the IAR0 Register with the configured priority */
bfin_write_SIC_IAR0(((CONFIG_IRQ_PLL_WAKEUP - 7) << IRQ_PLL_WAKEUP_POS) |
Expand Down
2 changes: 1 addition & 1 deletion arch/blackfin/mach-bf561/ints-priority.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <linux/irq.h>
#include <asm/blackfin.h>

void program_IAR(void)
void __init program_IAR(void)
{
/* Program the IAR0 Register with the configured priority */
bfin_write_SICA_IAR0(((CONFIG_IRQ_PLL_WAKEUP - 7) << IRQ_PLL_WAKEUP_POS) |
Expand Down

0 comments on commit 9216bbc

Please sign in to comment.