summaryrefslogtreecommitdiffstats
path: root/arch/mips/txx9/rbtx4927/setup.c
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2008-07-13 17:15:04 +0200
committerRalf Baechle <ralf@linux-mips.org>2008-07-15 19:44:38 +0200
commit7b22609442a32050e37cec5f6735376af61e68a1 (patch)
treedb340f9fc91d480c16ebdbdc4e0b9fa90995e756 /arch/mips/txx9/rbtx4927/setup.c
parent[MIPS] TXx9: rename asm-mips/mach-jmr3927 to asm-mips/mach-tx39xx (diff)
downloadlinux-7b22609442a32050e37cec5f6735376af61e68a1.tar.xz
linux-7b22609442a32050e37cec5f6735376af61e68a1.zip
[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/rbtx4927/setup.c')
-rw-r--r--arch/mips/txx9/rbtx4927/setup.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/arch/mips/txx9/rbtx4927/setup.c b/arch/mips/txx9/rbtx4927/setup.c
index aba11f376a51..1657fd935da8 100644
--- a/arch/mips/txx9/rbtx4927/setup.c
+++ b/arch/mips/txx9/rbtx4927/setup.c
@@ -50,8 +50,6 @@
#include <linux/pm.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
-
-#include <asm/bootinfo.h>
#include <asm/io.h>
#include <asm/processor.h>
#include <asm/reboot.h>
@@ -65,14 +63,6 @@
#include <linux/serial_core.h>
#endif
-/* These functions are used for rebooting or halting the machine*/
-extern void toshiba_rbtx4927_restart(char *command);
-extern void toshiba_rbtx4927_halt(void);
-extern void toshiba_rbtx4927_power_off(void);
-extern void toshiba_rbtx4927_irq_setup(void);
-
-char *prom_getcmdline(void);
-
static int tx4927_ccfg_toeon = 1;
#ifdef CONFIG_PCI
@@ -189,7 +179,7 @@ static void __noreturn wait_forever(void)
(*cpu_wait)();
}
-void toshiba_rbtx4927_restart(char *command)
+static void toshiba_rbtx4927_restart(char *command)
{
printk(KERN_NOTICE "System Rebooting...\n");
@@ -209,7 +199,7 @@ void toshiba_rbtx4927_restart(char *command)
/* no return */
}
-void toshiba_rbtx4927_halt(void)
+static void toshiba_rbtx4927_halt(void)
{
printk(KERN_NOTICE "System Halted\n");
local_irq_disable();
@@ -217,7 +207,7 @@ void toshiba_rbtx4927_halt(void)
/* no return */
}
-void toshiba_rbtx4927_power_off(void)
+static void toshiba_rbtx4927_power_off(void)
{
toshiba_rbtx4927_halt();
/* no return */