[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1585557539-22068-1-git-send-email-maobibo@loongson.cn>
Date: Mon, 30 Mar 2020 04:38:59 -0400
From: bibo mao <maobibo@...ngson.cn>
To: Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Jiaxun Yang <jiaxun.yang@...goat.com>,
Huacai Chen <chenhc@...ote.com>
Cc: linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 06/39] MIPS: ath25: Add header files path prefix
Remove header files from arch/mips/include/asm/mach-ath25
to arch/mips/ath25/include/mach
Signed-off-by: bibo mao <maobibo@...ngson.cn>
---
arch/mips/Kconfig | 1 +
arch/mips/ath25/Platform | 2 +-
arch/mips/ath25/ar2315.c | 2 +-
arch/mips/ath25/ar5312.c | 2 +-
arch/mips/ath25/board.c | 2 +-
arch/mips/ath25/devices.c | 2 +-
.../{include/asm/mach-ath25 => ath25/include/mach}/ath25_platform.h | 0
.../asm/mach-ath25 => ath25/include/mach}/cpu-feature-overrides.h | 0
arch/mips/ath25/include/mach/ioremap.h | 2 ++
arch/mips/ath25/include/mach/irq.h | 2 ++
arch/mips/ath25/include/mach/kernel-entry-init.h | 2 ++
arch/mips/ath25/include/mach/kmalloc.h | 2 ++
arch/mips/ath25/include/mach/mangle-port.h | 2 ++
arch/mips/ath25/include/mach/spaces.h | 2 ++
arch/mips/ath25/include/mach/topology.h | 2 ++
arch/mips/ath25/include/mach/war.h | 2 ++
drivers/net/wireless/ath/ath5k/ahb.c | 2 +-
17 files changed, 23 insertions(+), 6 deletions(-)
rename arch/mips/{include/asm/mach-ath25 => ath25/include/mach}/ath25_platform.h (100%)
rename arch/mips/{include/asm/mach-ath25 => ath25/include/mach}/cpu-feature-overrides.h (100%)
create mode 100644 arch/mips/ath25/include/mach/ioremap.h
create mode 100644 arch/mips/ath25/include/mach/irq.h
create mode 100644 arch/mips/ath25/include/mach/kernel-entry-init.h
create mode 100644 arch/mips/ath25/include/mach/kmalloc.h
create mode 100644 arch/mips/ath25/include/mach/mangle-port.h
create mode 100644 arch/mips/ath25/include/mach/spaces.h
create mode 100644 arch/mips/ath25/include/mach/topology.h
create mode 100644 arch/mips/ath25/include/mach/war.h
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 2bb678d..7fec160 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -198,6 +198,7 @@ config ATH25
select SYS_SUPPORTS_BIG_ENDIAN
select SYS_SUPPORTS_32BIT_KERNEL
select SYS_HAS_EARLY_PRINTK
+ select HAVE_MACH_HEAD_FILES
help
Support for Atheros AR231x and Atheros AR531x based boards
diff --git a/arch/mips/ath25/Platform b/arch/mips/ath25/Platform
index ef3f81f..a4fddcc 100644
--- a/arch/mips/ath25/Platform
+++ b/arch/mips/ath25/Platform
@@ -2,5 +2,5 @@
# Atheros AR531X/AR231X WiSoC
#
platform-$(CONFIG_ATH25) += ath25/
-cflags-$(CONFIG_ATH25) += -I$(srctree)/arch/mips/include/asm/mach-ath25
+cflags-$(CONFIG_ATH25) += -I$(srctree)/arch/mips/ath25/include
load-$(CONFIG_ATH25) += 0xffffffff80041000
diff --git a/arch/mips/ath25/ar2315.c b/arch/mips/ath25/ar2315.c
index e7b53e3..e435ccc 100644
--- a/arch/mips/ath25/ar2315.c
+++ b/arch/mips/ath25/ar2315.c
@@ -25,7 +25,7 @@
#include <asm/reboot.h>
#include <asm/time.h>
-#include <ath25_platform.h>
+#include <mach/ath25_platform.h>
#include "devices.h"
#include "ar2315.h"
diff --git a/arch/mips/ath25/ar5312.c b/arch/mips/ath25/ar5312.c
index 42bf2af..2f1a8b1 100644
--- a/arch/mips/ath25/ar5312.c
+++ b/arch/mips/ath25/ar5312.c
@@ -26,7 +26,7 @@
#include <asm/reboot.h>
#include <asm/time.h>
-#include <ath25_platform.h>
+#include <mach/ath25_platform.h>
#include "devices.h"
#include "ar5312.h"
diff --git a/arch/mips/ath25/board.c b/arch/mips/ath25/board.c
index cb99f97..5ec998b 100644
--- a/arch/mips/ath25/board.c
+++ b/arch/mips/ath25/board.c
@@ -16,7 +16,7 @@
#include <asm/bootinfo.h>
#include <asm/time.h>
-#include <ath25_platform.h>
+#include <mach/ath25_platform.h>
#include "devices.h"
#include "ar5312.h"
#include "ar2315.h"
diff --git a/arch/mips/ath25/devices.c b/arch/mips/ath25/devices.c
index 301a902..bf5f737 100644
--- a/arch/mips/ath25/devices.c
+++ b/arch/mips/ath25/devices.c
@@ -5,7 +5,7 @@
#include <linux/platform_device.h>
#include <asm/bootinfo.h>
-#include <ath25_platform.h>
+#include <mach/ath25_platform.h>
#include "devices.h"
#include "ar5312.h"
#include "ar2315.h"
diff --git a/arch/mips/include/asm/mach-ath25/ath25_platform.h b/arch/mips/ath25/include/mach/ath25_platform.h
similarity index 100%
rename from arch/mips/include/asm/mach-ath25/ath25_platform.h
rename to arch/mips/ath25/include/mach/ath25_platform.h
diff --git a/arch/mips/include/asm/mach-ath25/cpu-feature-overrides.h b/arch/mips/ath25/include/mach/cpu-feature-overrides.h
similarity index 100%
rename from arch/mips/include/asm/mach-ath25/cpu-feature-overrides.h
rename to arch/mips/ath25/include/mach/cpu-feature-overrides.h
diff --git a/arch/mips/ath25/include/mach/ioremap.h b/arch/mips/ath25/include/mach/ioremap.h
new file mode 100644
index 0000000..2369393
--- /dev/null
+++ b/arch/mips/ath25/include/mach/ioremap.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/ioremap.h>
diff --git a/arch/mips/ath25/include/mach/irq.h b/arch/mips/ath25/include/mach/irq.h
new file mode 100644
index 0000000..bb5ccce
--- /dev/null
+++ b/arch/mips/ath25/include/mach/irq.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/irq.h>
diff --git a/arch/mips/ath25/include/mach/kernel-entry-init.h b/arch/mips/ath25/include/mach/kernel-entry-init.h
new file mode 100644
index 0000000..19b872be
--- /dev/null
+++ b/arch/mips/ath25/include/mach/kernel-entry-init.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/kernel-entry-init.h>
diff --git a/arch/mips/ath25/include/mach/kmalloc.h b/arch/mips/ath25/include/mach/kmalloc.h
new file mode 100644
index 0000000..4f056db
--- /dev/null
+++ b/arch/mips/ath25/include/mach/kmalloc.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/kmalloc.h>
diff --git a/arch/mips/ath25/include/mach/mangle-port.h b/arch/mips/ath25/include/mach/mangle-port.h
new file mode 100644
index 0000000..b9736e3
--- /dev/null
+++ b/arch/mips/ath25/include/mach/mangle-port.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/mangle-port.h>
diff --git a/arch/mips/ath25/include/mach/spaces.h b/arch/mips/ath25/include/mach/spaces.h
new file mode 100644
index 0000000..39a4d72
--- /dev/null
+++ b/arch/mips/ath25/include/mach/spaces.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/spaces.h>
diff --git a/arch/mips/ath25/include/mach/topology.h b/arch/mips/ath25/include/mach/topology.h
new file mode 100644
index 0000000..86e585b
--- /dev/null
+++ b/arch/mips/ath25/include/mach/topology.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/topology.h>
diff --git a/arch/mips/ath25/include/mach/war.h b/arch/mips/ath25/include/mach/war.h
new file mode 100644
index 0000000..5b0422a
--- /dev/null
+++ b/arch/mips/ath25/include/mach/war.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <asm/mach-generic/war.h>
diff --git a/drivers/net/wireless/ath/ath5k/ahb.c b/drivers/net/wireless/ath/ath5k/ahb.c
index 2c9cec8..9281b36 100644
--- a/drivers/net/wireless/ath/ath5k/ahb.c
+++ b/drivers/net/wireless/ath/ath5k/ahb.c
@@ -20,7 +20,7 @@
#include <linux/nl80211.h>
#include <linux/platform_device.h>
#include <linux/etherdevice.h>
-#include <ath25_platform.h>
+#include <mach/ath25_platform.h>
#include "ath5k.h"
#include "debug.h"
#include "base.h"
--
1.8.3.1
Powered by blists - more mailing lists