2020-09-04 10:31:58

by Jinyang He

[permalink] [raw]
Subject: [PATCH] MIPS: Loongson64: Remove unused loongson_reboot.

Commit 1bdb7b76705a ("MIPS: Loongson64: Cleanup unused code")
left the loongson_reboot unused, delete it.

Signed-off-by: Jinyang He <[email protected]>
---
arch/mips/loongson64/reset.c | 5 -----
1 file changed, 5 deletions(-)

diff --git a/arch/mips/loongson64/reset.c b/arch/mips/loongson64/reset.c
index bc76710..3bb8a1e 100644
--- a/arch/mips/loongson64/reset.c
+++ b/arch/mips/loongson64/reset.c
@@ -15,11 +15,6 @@
#include <loongson.h>
#include <boot_param.h>

-static inline void loongson_reboot(void)
-{
- ((void (*)(void))ioremap(LOONGSON_BOOT_BASE, 4)) ();
-}
-
static void loongson_restart(char *command)
{

--
2.1.0


2020-09-08 07:38:54

by Thomas Bogendoerfer

[permalink] [raw]
Subject: Re: [PATCH] MIPS: Loongson64: Remove unused loongson_reboot.

On Fri, Sep 04, 2020 at 06:29:51PM +0800, Jinyang He wrote:
> Commit 1bdb7b76705a ("MIPS: Loongson64: Cleanup unused code")
> left the loongson_reboot unused, delete it.
>
> Signed-off-by: Jinyang He <[email protected]>
> ---
> arch/mips/loongson64/reset.c | 5 -----
> 1 file changed, 5 deletions(-)

applied to mips-next.

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]