Skip to content

Commit

Permalink
[MIPS] Sort out missuse of __init for prom_getcmdline()
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 31, 2006
1 parent e8f05de commit c21e6d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/mips/au1000/common/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/au1000/common/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/au1000_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c21e6d6

Please sign in to comment.