[PATCHv2 2/8] MIPS: Loongson64: cleanup all loongson common files to use SPDX Identifier

2017-12-30 Thread Jiaxun Yang
 To reduce unnecessary license text.

Signed-off-by: Jiaxun Yang 
---
 arch/mips/loongson64/common/bonito-irq.c   | 6 ++
 arch/mips/loongson64/common/cmdline.c  | 7 ++-
 arch/mips/loongson64/common/early_printk.c | 6 ++
 arch/mips/loongson64/common/env.c  | 6 ++
 arch/mips/loongson64/common/init.c | 6 ++
 arch/mips/loongson64/common/irq.c  | 6 ++
 arch/mips/loongson64/common/machtype.c | 6 ++
 arch/mips/loongson64/common/mem.c  | 8 ++--
 arch/mips/loongson64/common/pci.c  | 6 ++
 arch/mips/loongson64/common/platform.c | 6 ++
 arch/mips/loongson64/common/pm.c   | 6 ++
 arch/mips/loongson64/common/reset.c| 7 ++-
 arch/mips/loongson64/common/rtc.c  | 8 +++-
 arch/mips/loongson64/common/serial.c   | 5 ++---
 arch/mips/loongson64/common/setup.c| 6 ++
 arch/mips/loongson64/common/time.c | 6 ++
 arch/mips/loongson64/common/uart_base.c| 6 ++
 17 files changed, 35 insertions(+), 72 deletions(-)

diff --git a/arch/mips/loongson64/common/bonito-irq.c 
b/arch/mips/loongson64/common/bonito-irq.c
index 4e116d23bab3..eb9ef61363e0 100644
--- a/arch/mips/loongson64/common/bonito-irq.c
+++ b/arch/mips/loongson64/common/bonito-irq.c
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * Copyright 2001 MontaVista Software Inc.
  * Author: Jun Sun, j...@mvista.com or j...@junsun.net
@@ -6,10 +8,6 @@
  * Copyright (C) 2007 Lemote Inc. & Institute of Computing Technology
  * Author: Fuxin Zhang, zhan...@lemote.com
  *
- *  This program is free software; you can redistribute it and/or 
modify it
- *  under  the terms of the GNU General  Public License as published 
by the
- *  Free Software Foundation;  either version 2 of the License, or (at your
- *  option) any later version.
  */
 #include 
 #include 
diff --git a/arch/mips/loongson64/common/cmdline.c 
b/arch/mips/loongson64/common/cmdline.c
index 01fbed137028..791588474d80 100644
--- a/arch/mips/loongson64/common/cmdline.c
+++ b/arch/mips/loongson64/common/cmdline.c
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * Based on Ocelot Linux port, which is
  * Copyright 2001 MontaVista Software Inc.
@@ -11,11 +13,6 @@
  *
  * Copyright (C) 2009 Lemote Inc.
  * Author: Wu Zhangjin, wuzhang...@gmail.com
- *
- * This program is free software; you can redistribute it and/or modify it
- * under  the terms of the GNU General  Public License as published by the
- * Free Software Foundation;  either version 2 of the  License, or (at your
- * option) any later version.
  */
 #include 
 
diff --git a/arch/mips/loongson64/common/early_printk.c 
b/arch/mips/loongson64/common/early_printk.c
index 6ca632e529dc..6786ebdc55b9 100644
--- a/arch/mips/loongson64/common/early_printk.c
+++ b/arch/mips/loongson64/common/early_printk.c
@@ -1,13 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*  early printk support
  *
  *  Copyright (c) 2009 Philippe Vachon 
  *  Copyright (c) 2009 Lemote Inc.
  *  Author: Wu Zhangjin, wuzhang...@gmail.com
  *
- *  This program is free software; you can redistribute it and/or 
modify it
- *  under  the terms of the GNU General  Public License as published 
by the
- *  Free Software Foundation;  either version 2 of the License, or (at your
- *  option) any later version.
  */
 #include 
 
diff --git a/arch/mips/loongson64/common/env.c 
b/arch/mips/loongson64/common/env.c
index 1e8a955ae5a8..bd98494f45aa 100644
--- a/arch/mips/loongson64/common/env.c
+++ b/arch/mips/loongson64/common/env.c
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * Based on Ocelot Linux port, which is
  * Copyright 2001 MontaVista Software Inc.
@@ -12,10 +14,6 @@
  * Copyright (C) 2009 Lemote Inc.
  * Author: Wu Zhangjin, wuzhang...@gmail.com
  *
- * This program is free software; you can redistribute it and/or modify it
- * under  the terms of the GNU General  Public License as published by the
- * Free Software Foundation;  either version 2 of the  License, or (at your
- * option) any later version.
  */
 #include 
 #include 
diff --git a/arch/mips/loongson64/common/init.c 
b/arch/mips/loongson64/common/init.c
index 6ef17120722f..9166e7bac7d2 100644
--- a/arch/mips/loongson64/common/init.c
+++ b/arch/mips/loongson64/common/init.c
@@ -1,11 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * Copyright (C) 2009 Lemote Inc.
  * Author: Wu Zhangjin, wuzhang...@gmail.com
  *
- * This program is free software; you can redistribute it and/or modify it
- * under  the terms of the GNU General  Public License as published by the
- * Free Software Foundation;  either version 2 of the  License, or (at your
- * option) any later version.
  */
 
 #include 
diff --git a/arch/mips/loongson64/common/irq.c 
b/arch/mips/loongson64/common/irq.c
index d36d969a4a87..24e5ec2c0c5e 100644
--- a/arch/mips/loongson64/common/irq.c
+++ 

[PATCHv2 2/8] MIPS: Loongson64: cleanup all loongson common files to use SPDX Identifier

2017-12-30 Thread Jiaxun Yang
 To reduce unnecessary license text.

Signed-off-by: Jiaxun Yang 
---
 arch/mips/loongson64/common/bonito-irq.c   | 6 ++
 arch/mips/loongson64/common/cmdline.c  | 7 ++-
 arch/mips/loongson64/common/early_printk.c | 6 ++
 arch/mips/loongson64/common/env.c  | 6 ++
 arch/mips/loongson64/common/init.c | 6 ++
 arch/mips/loongson64/common/irq.c  | 6 ++
 arch/mips/loongson64/common/machtype.c | 6 ++
 arch/mips/loongson64/common/mem.c  | 8 ++--
 arch/mips/loongson64/common/pci.c  | 6 ++
 arch/mips/loongson64/common/platform.c | 6 ++
 arch/mips/loongson64/common/pm.c   | 6 ++
 arch/mips/loongson64/common/reset.c| 7 ++-
 arch/mips/loongson64/common/rtc.c  | 8 +++-
 arch/mips/loongson64/common/serial.c   | 5 ++---
 arch/mips/loongson64/common/setup.c| 6 ++
 arch/mips/loongson64/common/time.c | 6 ++
 arch/mips/loongson64/common/uart_base.c| 6 ++
 17 files changed, 35 insertions(+), 72 deletions(-)

diff --git a/arch/mips/loongson64/common/bonito-irq.c 
b/arch/mips/loongson64/common/bonito-irq.c
index 4e116d23bab3..eb9ef61363e0 100644
--- a/arch/mips/loongson64/common/bonito-irq.c
+++ b/arch/mips/loongson64/common/bonito-irq.c
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * Copyright 2001 MontaVista Software Inc.
  * Author: Jun Sun, j...@mvista.com or j...@junsun.net
@@ -6,10 +8,6 @@
  * Copyright (C) 2007 Lemote Inc. & Institute of Computing Technology
  * Author: Fuxin Zhang, zhan...@lemote.com
  *
- *  This program is free software; you can redistribute it and/or 
modify it
- *  under  the terms of the GNU General  Public License as published 
by the
- *  Free Software Foundation;  either version 2 of the License, or (at your
- *  option) any later version.
  */
 #include 
 #include 
diff --git a/arch/mips/loongson64/common/cmdline.c 
b/arch/mips/loongson64/common/cmdline.c
index 01fbed137028..791588474d80 100644
--- a/arch/mips/loongson64/common/cmdline.c
+++ b/arch/mips/loongson64/common/cmdline.c
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * Based on Ocelot Linux port, which is
  * Copyright 2001 MontaVista Software Inc.
@@ -11,11 +13,6 @@
  *
  * Copyright (C) 2009 Lemote Inc.
  * Author: Wu Zhangjin, wuzhang...@gmail.com
- *
- * This program is free software; you can redistribute it and/or modify it
- * under  the terms of the GNU General  Public License as published by the
- * Free Software Foundation;  either version 2 of the  License, or (at your
- * option) any later version.
  */
 #include 
 
diff --git a/arch/mips/loongson64/common/early_printk.c 
b/arch/mips/loongson64/common/early_printk.c
index 6ca632e529dc..6786ebdc55b9 100644
--- a/arch/mips/loongson64/common/early_printk.c
+++ b/arch/mips/loongson64/common/early_printk.c
@@ -1,13 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*  early printk support
  *
  *  Copyright (c) 2009 Philippe Vachon 
  *  Copyright (c) 2009 Lemote Inc.
  *  Author: Wu Zhangjin, wuzhang...@gmail.com
  *
- *  This program is free software; you can redistribute it and/or 
modify it
- *  under  the terms of the GNU General  Public License as published 
by the
- *  Free Software Foundation;  either version 2 of the License, or (at your
- *  option) any later version.
  */
 #include 
 
diff --git a/arch/mips/loongson64/common/env.c 
b/arch/mips/loongson64/common/env.c
index 1e8a955ae5a8..bd98494f45aa 100644
--- a/arch/mips/loongson64/common/env.c
+++ b/arch/mips/loongson64/common/env.c
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * Based on Ocelot Linux port, which is
  * Copyright 2001 MontaVista Software Inc.
@@ -12,10 +14,6 @@
  * Copyright (C) 2009 Lemote Inc.
  * Author: Wu Zhangjin, wuzhang...@gmail.com
  *
- * This program is free software; you can redistribute it and/or modify it
- * under  the terms of the GNU General  Public License as published by the
- * Free Software Foundation;  either version 2 of the  License, or (at your
- * option) any later version.
  */
 #include 
 #include 
diff --git a/arch/mips/loongson64/common/init.c 
b/arch/mips/loongson64/common/init.c
index 6ef17120722f..9166e7bac7d2 100644
--- a/arch/mips/loongson64/common/init.c
+++ b/arch/mips/loongson64/common/init.c
@@ -1,11 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * Copyright (C) 2009 Lemote Inc.
  * Author: Wu Zhangjin, wuzhang...@gmail.com
  *
- * This program is free software; you can redistribute it and/or modify it
- * under  the terms of the GNU General  Public License as published by the
- * Free Software Foundation;  either version 2 of the  License, or (at your
- * option) any later version.
  */
 
 #include 
diff --git a/arch/mips/loongson64/common/irq.c 
b/arch/mips/loongson64/common/irq.c
index d36d969a4a87..24e5ec2c0c5e 100644
--- a/arch/mips/loongson64/common/irq.c
+++ b/arch/mips/loongson64/common/irq.c
@@ -1,11 +1,9 @@
+//