]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] CPM_UART: Removed __init from cpm_uart_init_portdesc to fix warning
authorKumar Gala <galak@kernel.crashing.org>
Thu, 10 May 2007 04:44:58 +0000 (23:44 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 10 May 2007 04:44:58 +0000 (23:44 -0500)
cpm_uart_init_portdesc is referenced from non-init code and thus we were
getting the following warning:

WARNING: drivers/built-in.o - Section mismatch: reference to .init.text:cpm_uart_init_portdesc from .text between 'cpm_uart_init' (at offset 0x18020) and 'cpm_uart_drv_remove'

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
drivers/serial/cpm_uart/cpm_uart.h
drivers/serial/cpm_uart/cpm_uart_cpm1.c
drivers/serial/cpm_uart/cpm_uart_cpm2.c

index 69715e55650612ebca86fd7d8b069e6ad4eb03a9..a8f894c7819463cd30b39eafd1bc10032f135965 100644 (file)
@@ -88,7 +88,7 @@ extern struct uart_cpm_port cpm_uart_ports[UART_NR];
 
 /* these are located in their respective files */
 void cpm_line_cr_cmd(int line, int cmd);
-int __init cpm_uart_init_portdesc(void);
+int cpm_uart_init_portdesc(void);
 int cpm_uart_allocbuf(struct uart_cpm_port *pinfo, unsigned int is_con);
 void cpm_uart_freebuf(struct uart_cpm_port *pinfo);
 
index bb7afe985c632038e641b17d18428b20e6795f2e..8c6324ed0202dda2b7568a3478f1e2ca3c948434 100644 (file)
@@ -185,7 +185,7 @@ void cpm_uart_freebuf(struct uart_cpm_port *pinfo)
 }
 
 /* Setup any dynamic params in the uart desc */
-int __init cpm_uart_init_portdesc(void)
+int cpm_uart_init_portdesc(void)
 {
        pr_debug("CPM uart[-]:init portdesc\n");
 
index 1eeea368071ad50727065521ae3bf3c147c7badc..7b61d805ebe98b317138e3c2a562ee1496c29789 100644 (file)
@@ -282,7 +282,7 @@ void cpm_uart_freebuf(struct uart_cpm_port *pinfo)
 }
 
 /* Setup any dynamic params in the uart desc */
-int __init cpm_uart_init_portdesc(void)
+int cpm_uart_init_portdesc(void)
 {
 #if defined(CONFIG_SERIAL_CPM_SMC1) || defined(CONFIG_SERIAL_CPM_SMC2)
        u16 *addr;