]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: restart: tegra: use new restart hook
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 5 Nov 2011 08:48:33 +0000 (08:48 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 Nov 2011 21:54:42 +0000 (21:54 +0000)
Hook these platforms restart code into the new restart hook rather
than using arch_reset().

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-tegra/board-dt.c
arch/arm/mach-tegra/board-harmony.c
arch/arm/mach-tegra/board-paz00.c
arch/arm/mach-tegra/board-seaboard.c
arch/arm/mach-tegra/board-trimslice.c
arch/arm/mach-tegra/common.c
arch/arm/mach-tegra/include/mach/system.h

index d368f8dafcfd916fe215637fd3cdd84e8d56c1a3..a00713cbaa24a317f1b1f5edf0283c325b0d4ad9 100644 (file)
@@ -131,5 +131,6 @@ DT_MACHINE_START(TEGRA_DT, "nVidia Tegra (Flattened Device Tree)")
        .init_irq       = tegra_init_irq,
        .timer          = &tegra_timer,
        .init_machine   = tegra_dt_init,
+       .restart        = tegra_assert_system_reset,
        .dt_compat      = tegra_dt_board_compat,
 MACHINE_END
index f0bdc5e3fe527a3a34d61b269a0ee0cc816a657e..7eaa52de756cbfe128b44ebfcd8fa0c8d15d40a7 100644 (file)
@@ -189,4 +189,5 @@ MACHINE_START(HARMONY, "harmony")
        .init_irq       = tegra_init_irq,
        .timer          = &tegra_timer,
        .init_machine   = tegra_harmony_init,
+       .restart        = tegra_assert_system_reset,
 MACHINE_END
index 55c55ba89f1e0c52ddbe838764c814f423ca4cb3..28c97e3174073f6db4644342b11c5304c7dbbc51 100644 (file)
@@ -192,4 +192,5 @@ MACHINE_START(PAZ00, "Toshiba AC100 / Dynabook AZ")
        .init_irq       = tegra_init_irq,
        .timer          = &tegra_timer,
        .init_machine   = tegra_paz00_init,
+       .restart        = tegra_assert_system_reset,
 MACHINE_END
index bf13ea355efcc5049642f78f9e2869609a0bff91..9b2eca1f5283c0c5c285a1942952ee971a6b8cd5 100644 (file)
@@ -286,6 +286,7 @@ MACHINE_START(SEABOARD, "seaboard")
        .init_irq       = tegra_init_irq,
        .timer          = &tegra_timer,
        .init_machine   = tegra_seaboard_init,
+       .restart        = tegra_assert_system_reset,
 MACHINE_END
 
 MACHINE_START(KAEN, "kaen")
@@ -295,6 +296,7 @@ MACHINE_START(KAEN, "kaen")
        .init_irq       = tegra_init_irq,
        .timer          = &tegra_timer,
        .init_machine   = tegra_kaen_init,
+       .restart        = tegra_assert_system_reset,
 MACHINE_END
 
 MACHINE_START(WARIO, "wario")
@@ -304,4 +306,5 @@ MACHINE_START(WARIO, "wario")
        .init_irq       = tegra_init_irq,
        .timer          = &tegra_timer,
        .init_machine   = tegra_wario_init,
+       .restart        = tegra_assert_system_reset,
 MACHINE_END
index 1a6617b7806f2d8cf75178dcdc7393fb4195c24a..1fa9e48e8ec627ecad7889676e2901b9686a91ad 100644 (file)
@@ -178,4 +178,5 @@ MACHINE_START(TRIMSLICE, "trimslice")
        .init_irq       = tegra_init_irq,
        .timer          = &tegra_timer,
        .init_machine   = tegra_trimslice_init,
+       .restart        = tegra_assert_system_reset,
 MACHINE_END
index 690b888be506b0f1e841a19f96180966cce00c89..20f396d740fa40a9e5852741d338429ba5f37bb8 100644 (file)
@@ -31,8 +31,6 @@
 #include "clock.h"
 #include "fuse.h"
 
-void (*arch_reset)(char mode, const char *cmd) = tegra_assert_system_reset;
-
 void tegra_assert_system_reset(char mode, const char *cmd)
 {
        void __iomem *reset = IO_ADDRESS(TEGRA_CLK_RESET_BASE + 0x04);
index 027c4215d3132cf273de1eeadf49760a680a2afa..b87b8a4bc30a41d5d6a63cf145e27dce2f14eca1 100644 (file)
@@ -21,9 +21,9 @@
 #ifndef __MACH_TEGRA_SYSTEM_H
 #define __MACH_TEGRA_SYSTEM_H
 
-#include <mach/iomap.h>
-
-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)
 {