Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101468
b: refs/heads/master
c: 7b22609
h: refs/heads/master
v: v3
  • Loading branch information
Atsushi Nemoto authored and Ralf Baechle committed Jul 15, 2008
1 parent 4dc022d commit c0940f9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c642f3f5e9f3f1a2fcce2c3fa1a94bf80142202
refs/heads/master: 7b22609442a32050e37cec5f6735376af61e68a1
2 changes: 1 addition & 1 deletion trunk/arch/mips/txx9/generic/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ void __init prom_init(void)

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)
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/mips/txx9/jmr3927/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
#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>
Expand Down Expand Up @@ -95,7 +93,6 @@ static void __init jmr3927_time_init(void)
#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)
Expand Down
16 changes: 3 additions & 13 deletions trunk/arch/mips/txx9/rbtx4927/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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
Expand Down Expand Up @@ -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");

Expand All @@ -209,15 +199,15 @@ 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();
wait_forever();
/* no return */
}

void toshiba_rbtx4927_power_off(void)
static void toshiba_rbtx4927_power_off(void)
{
toshiba_rbtx4927_halt();
/* no return */
Expand Down
13 changes: 3 additions & 10 deletions trunk/arch/mips/txx9/rbtx4938/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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();
Expand All @@ -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();

Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-mips/txx9/generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ struct txx9_board_vec {
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 */

0 comments on commit c0940f9

Please sign in to comment.