* 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>
strcpy(txx9_system_type, txx9_board_vec->system);
strcpy(txx9_system_type, txx9_board_vec->system);
- return txx9_board_vec->prom_init();
+ txx9_board_vec->prom_init();
}
void __init prom_free_prom_memory(void)
}
void __init prom_free_prom_memory(void)
#ifdef CONFIG_SERIAL_TXX9
#include <linux/serial_core.h>
#endif
#ifdef CONFIG_SERIAL_TXX9
#include <linux/serial_core.h>
#endif
-
-#include <asm/bootinfo.h>
#include <asm/txx9tmr.h>
#include <asm/txx9pio.h>
#include <asm/reboot.h>
#include <asm/txx9tmr.h>
#include <asm/txx9pio.h>
#include <asm/reboot.h>
#define DO_WRITE_THROUGH
#define DO_ENABLE_CACHE
#define DO_WRITE_THROUGH
#define DO_ENABLE_CACHE
-extern char * __init prom_getcmdline(void);
static void jmr3927_board_init(void);
static void __init jmr3927_mem_setup(void)
static void jmr3927_board_init(void);
static void __init jmr3927_mem_setup(void)
#include <linux/pm.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#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>
#include <asm/io.h>
#include <asm/processor.h>
#include <asm/reboot.h>
#include <linux/serial_core.h>
#endif
#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
static int tx4927_ccfg_toeon = 1;
#ifdef CONFIG_PCI
-void toshiba_rbtx4927_restart(char *command)
+static void toshiba_rbtx4927_restart(char *command)
{
printk(KERN_NOTICE "System Rebooting...\n");
{
printk(KERN_NOTICE "System Rebooting...\n");
-void toshiba_rbtx4927_halt(void)
+static void toshiba_rbtx4927_halt(void)
{
printk(KERN_NOTICE "System Halted\n");
local_irq_disable();
{
printk(KERN_NOTICE "System Halted\n");
local_irq_disable();
-void toshiba_rbtx4927_power_off(void)
+static void toshiba_rbtx4927_power_off(void)
{
toshiba_rbtx4927_halt();
/* no return */
{
toshiba_rbtx4927_halt();
/* no return */
#include <asm/time.h>
#include <asm/txx9tmr.h>
#include <asm/io.h>
#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>
#include <asm/txx9/generic.h>
#include <asm/txx9/pci.h>
#include <asm/txx9/rbtx4938.h>
#include <asm/txx9/spi.h>
#include <asm/txx9pio.h>
#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;
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();
{
printk(KERN_NOTICE "System Halted\n");
local_irq_disable();
-void rbtx4938_machine_power_off(void)
+static void rbtx4938_machine_power_off(void)
{
rbtx4938_machine_halt();
/* no return */
}
{
rbtx4938_machine_halt();
/* no return */
}
-void rbtx4938_machine_restart(char *command)
+static void rbtx4938_machine_restart(char *command)
extern struct txx9_board_vec *txx9_board_vec;
extern int (*txx9_irq_dispatch)(int pending);
void prom_init_cmdline(void);
extern struct txx9_board_vec *txx9_board_vec;
extern int (*txx9_irq_dispatch)(int pending);
void prom_init_cmdline(void);
+char *prom_getcmdline(void);
#endif /* __ASM_TXX9_GENERIC_H */
#endif /* __ASM_TXX9_GENERIC_H */