Skip to content

Commit

Permalink
ARM: restart: shark: use new restart hook
Browse files Browse the repository at this point in the history
Hook the Shark restart code into the new restart hook rather than
using arch_reset().

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Jan 5, 2012
1 parent d9ca583 commit b95ff9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion arch/arm/mach-shark/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define ROMCARD_SIZE 0x08000000
#define ROMCARD_START 0x10000000

void arch_reset(char mode, const char *cmd)
static void shark_restart(char mode, const char *cmd)
{
short temp;
/* Reset the Machine via pc[3] of the sequoia chipset */
Expand Down Expand Up @@ -156,4 +156,5 @@ MACHINE_START(SHARK, "Shark")
.init_irq = shark_init_irq,
.timer = &shark_timer,
.dma_zone_size = SZ_4M,
.restart = shark_restart,
MACHINE_END
5 changes: 3 additions & 2 deletions arch/arm/mach-shark/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
#ifndef __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H

/* Found in arch/mach-shark/core.c */
extern void arch_reset(char mode, const char *cmd);
static inline void arch_reset(char mode, const char *cmd)
{
}

static inline void arch_idle(void)
{
Expand Down

0 comments on commit b95ff9f

Please sign in to comment.