diff mbox

MIPS: Loongson 2F: fix broken build due incorrect includes

Message ID 1436537377-7138-1-git-send-email-aaro.koskinen@iki.fi (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Aaro Koskinen July 10, 2015, 2:09 p.m. UTC
Commit 30ad29bb4888 ("MIPS: Loongson: Naming style cleanup and rework")
renamed mach-loongson to mach-loongson64. Some files are including
loongson.h using the asm/mach-loongson directory name, so the build
got broken. Fix by removing the directory name; the mach directory
is automatically in the include path.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
 arch/mips/loongson64/lemote-2f/clock.c | 2 +-
 drivers/cpufreq/loongson2_cpufreq.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Viresh Kumar July 13, 2015, 2:30 a.m. UTC | #1
On 10-07-15, 17:09, Aaro Koskinen wrote:
> Commit 30ad29bb4888 ("MIPS: Loongson: Naming style cleanup and rework")
> renamed mach-loongson to mach-loongson64. Some files are including
> loongson.h using the asm/mach-loongson directory name, so the build
> got broken. Fix by removing the directory name; the mach directory
> is automatically in the include path.
> 
> Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>

Fixes: 30ad29bb4888 ("MIPS: Loongson: Naming style cleanup and rework")

> ---
>  arch/mips/loongson64/lemote-2f/clock.c | 2 +-
>  drivers/cpufreq/loongson2_cpufreq.c    | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
diff mbox

Patch

diff --git a/arch/mips/loongson64/lemote-2f/clock.c b/arch/mips/loongson64/lemote-2f/clock.c
index 462e34d..d241434 100644
--- a/arch/mips/loongson64/lemote-2f/clock.c
+++ b/arch/mips/loongson64/lemote-2f/clock.c
@@ -15,7 +15,7 @@ 
 #include <linux/spinlock.h>
 
 #include <asm/clock.h>
-#include <asm/mach-loongson/loongson.h>
+#include <loongson.h>
 
 static LIST_HEAD(clock_list);
 static DEFINE_SPINLOCK(clock_lock);
diff --git a/drivers/cpufreq/loongson2_cpufreq.c b/drivers/cpufreq/loongson2_cpufreq.c
index fc897ba..2e2738b 100644
--- a/drivers/cpufreq/loongson2_cpufreq.c
+++ b/drivers/cpufreq/loongson2_cpufreq.c
@@ -20,7 +20,7 @@ 
 #include <asm/clock.h>
 #include <asm/idle.h>
 
-#include <asm/mach-loongson/loongson.h>
+#include <loongson.h>
 
 static uint nowait;