aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/txx9/rbtx4938
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2008-07-14 00:15:04 +0900
committerRalf Baechle <ralf@linux-mips.org>2008-07-15 18:44:38 +0100
commit7b22609442a32050e37cec5f6735376af61e68a1 (patch)
treedb340f9fc91d480c16ebdbdc4e0b9fa90995e756 /arch/mips/txx9/rbtx4938
parent4c642f3f5e9f3f1a2fcce2c3fa1a94bf80142202 (diff)
[MIPS] TXx9: cleanup and fix some sparse warnings
* Do not return void value * Make some functions static * Do not include unnecessary bootinfo.h Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/txx9/rbtx4938')
-rw-r--r--arch/mips/txx9/rbtx4938/setup.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/arch/mips/txx9/rbtx4938/setup.c b/arch/mips/txx9/rbtx4938/setup.c
index 2ef71adea82..aaa987ae0f8 100644
--- a/arch/mips/txx9/rbtx4938/setup.c
+++ b/arch/mips/txx9/rbtx4938/setup.c
@@ -23,7 +23,6 @@
#include <asm/time.h>
#include <asm/txx9tmr.h>
#include <asm/io.h>
-#include <asm/bootinfo.h>
#include <asm/txx9/generic.h>
#include <asm/txx9/pci.h>
#include <asm/txx9/rbtx4938.h>
@@ -34,15 +33,9 @@
#include <asm/txx9/spi.h>
#include <asm/txx9pio.h>
-extern char * __init prom_getcmdline(void);
-/* These functions are used for rebooting or halting the machine*/
-extern void rbtx4938_machine_restart(char *command);
-extern void rbtx4938_machine_halt(void);
-extern void rbtx4938_machine_power_off(void);
-
static int tx4938_ccfg_toeon = 1;
-void rbtx4938_machine_halt(void)
+static void rbtx4938_machine_halt(void)
{
printk(KERN_NOTICE "System Halted\n");
local_irq_disable();
@@ -53,13 +46,13 @@ void rbtx4938_machine_halt(void)
".set\tmips0");
}
-void rbtx4938_machine_power_off(void)
+static void rbtx4938_machine_power_off(void)
{
rbtx4938_machine_halt();
/* no return */
}
-void rbtx4938_machine_restart(char *command)
+static void rbtx4938_machine_restart(char *command)
{
local_irq_disable();