Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162818
b: refs/heads/master
c: 38c9fb7
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Baechle committed Sep 17, 2009
1 parent 80b1cb8 commit 5f9f368
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 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: 1f320d053c666567a8e440ebcec4ed7f7006b006
refs/heads/master: 38c9fb743f0d6e9dd8ee45e3e6247bc7d147c4de
2 changes: 0 additions & 2 deletions trunk/arch/mips/include/asm/mips-boards/generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@

extern int mips_revision_sconid;

extern void mips_reboot_setup(void);

#ifdef CONFIG_PCI
extern void mips_pcibios_init(void);
#else
Expand Down
7 changes: 6 additions & 1 deletion trunk/arch/mips/lemote/lm2e/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology
* Author: Fuxin Zhang, zhangfx@lemote.com
*/
#include <linux/init.h>
#include <linux/pm.h>

#include <asm/reboot.h>
Expand All @@ -33,9 +34,13 @@ static void loongson2e_power_off(void)
loongson2e_halt();
}

void mips_reboot_setup(void)
static int __init mips_reboot_setup(void)
{
_machine_restart = loongson2e_restart;
_machine_halt = loongson2e_halt;
pm_power_off = loongson2e_power_off;

return 0;
}

arch_initcall(mips_reboot_setup);
3 changes: 0 additions & 3 deletions trunk/arch/mips/lemote/lm2e/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
#include <linux/screen_info.h>
#endif

extern void mips_reboot_setup(void);

unsigned long cpu_clock_freq;
unsigned long bus_clock;
unsigned int memsize;
Expand Down Expand Up @@ -77,7 +75,6 @@ void __init plat_mem_setup(void)
{
set_io_port_base((unsigned long)ioremap(LOONGSON2E_IO_PORT_BASE,
IO_SPACE_LIMIT - LOONGSON2E_PCI_IO_START + 1));
mips_reboot_setup();

__wbflush = wbflush_loongson2e;

Expand Down

0 comments on commit 5f9f368

Please sign in to comment.