]> err.no Git - linux-2.6/commitdiff
powerpc/QE: qe_reset should be __init
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Wed, 11 Jun 2008 12:32:48 +0000 (16:32 +0400)
committerKumar Gala <galak@kernel.crashing.org>
Wed, 11 Jun 2008 18:46:24 +0000 (13:46 -0500)
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>
arch/powerpc/sysdev/qe_lib/qe.c
include/asm-powerpc/qe.h

index 28e05df952de2c518d12d9bfaf54d69ed979a53e..9e82d7e725a5e7ad46016db87dd398c610dac0d5 100644 (file)
@@ -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);
index 80807fd6a7069dcafe2d46e9ec90b96c1139b530..1355e726701359cbd09f6d08230890f6d4232d16 100644 (file)
@@ -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