diff options
-rw-r--r-- | arch/arm/mach-exynos/common.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index f323655737fb..8bc587cb165a 100644 --- a/arch/arm/mach-exynos/common.c +++ b/arch/arm/mach-exynos/common.c | |||
@@ -329,10 +329,10 @@ void exynos5_restart(char mode, const char *cmd) | |||
329 | u32 val; | 329 | u32 val; |
330 | void __iomem *addr; | 330 | void __iomem *addr; |
331 | 331 | ||
332 | if (of_machine_is_compatible("samsung,exynos5250")) { | 332 | val = 0x1; |
333 | val = 0x1; | 333 | addr = EXYNOS_SWRESET; |
334 | addr = EXYNOS_SWRESET; | 334 | |
335 | } else if (of_machine_is_compatible("samsung,exynos5440")) { | 335 | if (of_machine_is_compatible("samsung,exynos5440")) { |
336 | u32 status; | 336 | u32 status; |
337 | np = of_find_compatible_node(NULL, NULL, "samsung,exynos5440-clock"); | 337 | np = of_find_compatible_node(NULL, NULL, "samsung,exynos5440-clock"); |
338 | 338 | ||
@@ -343,9 +343,6 @@ void exynos5_restart(char mode, const char *cmd) | |||
343 | val = __raw_readl(addr); | 343 | val = __raw_readl(addr); |
344 | 344 | ||
345 | val = (val & 0xffff0000) | (status & 0xffff); | 345 | val = (val & 0xffff0000) | (status & 0xffff); |
346 | } else { | ||
347 | pr_err("%s: cannot support non-DT\n", __func__); | ||
348 | return; | ||
349 | } | 346 | } |
350 | 347 | ||
351 | __raw_writel(val, addr); | 348 | __raw_writel(val, addr); |