Skip to content

Commit

Permalink
powerpc/QE: qe_reset should be __init
Browse files Browse the repository at this point in the history
This patch fixes following section mismatch:

WARNING: arch/powerpc/sysdev/built-in.o(.text+0x11d8): Section mismatch in
reference from the function qe_reset() to the function
.init.text:cpm_muram_init()

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Anton Vorontsov authored and Kumar Gala committed Jun 11, 2008
1 parent 5093bb9 commit 5848f16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/qe_lib/qe.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ phys_addr_t get_qe_base(void)

EXPORT_SYMBOL(get_qe_base);

void qe_reset(void)
void __init qe_reset(void)
{
if (qe_immr == NULL)
qe_immr = ioremap(get_qe_base(), QE_IMMAP_SIZE);
Expand Down
2 changes: 1 addition & 1 deletion include/asm-powerpc/qe.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static inline bool qe_clock_is_brg(enum qe_clock clk)
extern spinlock_t cmxgcr_lock;

/* Export QE common operations */
extern void qe_reset(void);
extern void __init qe_reset(void);

/* QE PIO */
#define QE_PIO_PINS 32
Expand Down

0 comments on commit 5848f16

Please sign in to comment.