hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/gpio/gpio-loongson.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Loongson-2F/3A/3B GPIO Support
34 *
....@@ -5,11 +6,6 @@
56 * Copyright (c) 2008-2010 Arnaud Patard <apatard@mandriva.com>
67 * Copyright (c) 2013 Hongbing Hu <huhb@lemote.com>
78 * Copyright (c) 2014 Huacai Chen <chenhc@lemote.com>
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License as published by
11
- * the Free Software Foundation; either version 2 of the License, or
12
- * (at your option) any later version.
139 */
1410
1511 #include <linux/kernel.h>
....@@ -26,7 +22,7 @@
2622 #define STLS2F_N_GPIO 4
2723 #define STLS3A_N_GPIO 16
2824
29
-#ifdef CONFIG_CPU_LOONGSON3
25
+#ifdef CONFIG_CPU_LOONGSON64
3026 #define LOONGSON_N_GPIO STLS3A_N_GPIO
3127 #else
3228 #define LOONGSON_N_GPIO STLS2F_N_GPIO