Skip to content

Commit

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

Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Jan 5, 2012
1 parent 6c00071 commit 3921470
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-cns3xxx/cns3420vb.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,5 @@ MACHINE_START(CNS3420VB, "Cavium Networks CNS3420 Validation Board")
.init_irq = cns3xxx_init_irq,
.timer = &cns3xxx_timer,
.init_machine = cns3420_init,
.restart = cns3xxx_restart,
MACHINE_END
1 change: 1 addition & 0 deletions arch/arm/mach-cns3xxx/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ static inline void cns3xxx_l2x0_init(void) {}
void __init cns3xxx_map_io(void);
void __init cns3xxx_init_irq(void);
void cns3xxx_power_off(void);
void cns3xxx_restart(char, const char *);

#endif /* __CNS3XXX_CORE_H */
5 changes: 3 additions & 2 deletions arch/arm/mach-cns3xxx/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#ifndef __MACH_SYSTEM_H
#define __MACH_SYSTEM_H

#include <linux/io.h>
#include <asm/proc-fns.h>

static inline void arch_idle(void)
Expand All @@ -23,6 +22,8 @@ static inline void arch_idle(void)
cpu_do_idle();
}

void arch_reset(char mode, const char *cmd);
static inline void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 2 additions & 2 deletions arch/arm/mach-cns3xxx/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include <linux/io.h>
#include <linux/delay.h>
#include <linux/atomic.h>
#include <mach/system.h>
#include <mach/cns3xxx.h>
#include <mach/pm.h>
#include "core.h"

void cns3xxx_pwr_clk_en(unsigned int block)
{
Expand Down Expand Up @@ -89,7 +89,7 @@ void cns3xxx_pwr_soft_rst(unsigned int block)
}
EXPORT_SYMBOL(cns3xxx_pwr_soft_rst);

void arch_reset(char mode, const char *cmd)
void cns3xxx_restart(char mode, const char *cmd)
{
/*
* To reset, we hit the on-board reset register
Expand Down

0 comments on commit 3921470

Please sign in to comment.