]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
[MIPS] Sort out missuse of __init for prom_getcmdline()
authorRalf Baechle <ralf@linux-mips.org>
Tue, 31 Oct 2006 13:41:59 +0000 (13:41 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 31 Oct 2006 20:13:20 +0000 (20:13 +0000)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/au1000/common/prom.c
arch/mips/au1000/common/setup.c
drivers/net/au1000_eth.c

index b4b010a2fe36d2b8947a680b903666de8b2715c2..6fce60af005dc7be1704d660d6d4ecc1fdcacd47 100644 (file)
@@ -47,7 +47,7 @@ extern int prom_argc;
 extern char **prom_argv, **prom_envp;
 
 
-char * prom_getcmdline(void)
+char * __init_or_module prom_getcmdline(void)
 {
        return &(arcs_cmdline[0]);
 }
index 377ae0d8ff0037300d30a392cf5629ea2bb1950f..919172db560cfa4d779e19fec1ae93b97aa80276 100644 (file)
@@ -43,7 +43,7 @@
 #include <asm/mach-au1x00/au1000.h>
 #include <asm/time.h>
 
-extern char * __init prom_getcmdline(void);
+extern char * prom_getcmdline(void);
 extern void __init board_setup(void);
 extern void au1000_restart(char *);
 extern void au1000_halt(void);
index 4873dc610d22e9f772d6a0242b3c66dc200eeed4..7db3c8af08942a76aa4244f430ec5b66691dd8b7 100644 (file)
@@ -102,7 +102,7 @@ static void enable_mac(struct net_device *, int);
 // externs
 extern int get_ethernet_addr(char *ethernet_addr);
 extern void str2eaddr(unsigned char *ea, unsigned char *str);
-extern char * __init prom_getcmdline(void);
+extern char * prom_getcmdline(void);
 
 /*
  * Theory of operation