* [PATCH] MIPS: malta: remove mach-malta/malta-dtshim.h header file
@ 2020-09-20 21:13 Thomas Bogendoerfer
2020-09-21 20:31 ` Thomas Bogendoerfer
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Bogendoerfer @ 2020-09-20 21:13 UTC (permalink / raw)
To: linux-mips, linux-kernel
To clean up mach-* directories move external declaration of malta_dt_shim()
to mips-boards/malta.h and remove malta-dtshim.h.
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
---
arch/mips/include/asm/mach-malta/malta-dtshim.h | 25 -------------------------
arch/mips/include/asm/mips-boards/malta.h | 2 ++
arch/mips/mti-malta/malta-setup.c | 1 -
3 files changed, 2 insertions(+), 26 deletions(-)
delete mode 100644 arch/mips/include/asm/mach-malta/malta-dtshim.h
diff --git a/arch/mips/include/asm/mach-malta/malta-dtshim.h b/arch/mips/include/asm/mach-malta/malta-dtshim.h
deleted file mode 100644
index 7c97b710121d..000000000000
--- a/arch/mips/include/asm/mach-malta/malta-dtshim.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * Copyright (C) 2015 Imagination Technologies
- * Author: Paul Burton <paul.burton@mips.com>
- */
-
-#ifndef __MIPS_MALTA_DTSHIM_H__
-#define __MIPS_MALTA_DTSHIM_H__
-
-#include <linux/init.h>
-
-#ifdef CONFIG_MIPS_MALTA
-
-extern void __init *malta_dt_shim(void *fdt);
-
-#else /* !CONFIG_MIPS_MALTA */
-
-static inline void *malta_dt_shim(void *fdt)
-{
- return fdt;
-}
-
-#endif /* !CONFIG_MIPS_MALTA */
-
-#endif /* __MIPS_MALTA_DTSHIM_H__ */
diff --git a/arch/mips/include/asm/mips-boards/malta.h b/arch/mips/include/asm/mips-boards/malta.h
index 65de4fb06096..254be3d62519 100644
--- a/arch/mips/include/asm/mips-boards/malta.h
+++ b/arch/mips/include/asm/mips-boards/malta.h
@@ -92,4 +92,6 @@ static inline unsigned long get_msc_port_base(unsigned long reg)
#define MALTA_JMPRS_REG 0x1f000210
+extern void __init *malta_dt_shim(void *fdt);
+
#endif /* __ASM_MIPS_BOARDS_MALTA_H */
diff --git a/arch/mips/mti-malta/malta-setup.c b/arch/mips/mti-malta/malta-setup.c
index c4ad5a9b4bc1..e1fb8b534944 100644
--- a/arch/mips/mti-malta/malta-setup.c
+++ b/arch/mips/mti-malta/malta-setup.c
@@ -16,7 +16,6 @@
#include <asm/dma-coherence.h>
#include <asm/fw/fw.h>
-#include <asm/mach-malta/malta-dtshim.h>
#include <asm/mips-cps.h>
#include <asm/mips-boards/generic.h>
#include <asm/mips-boards/malta.h>
--
2.16.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] MIPS: malta: remove mach-malta/malta-dtshim.h header file
2020-09-20 21:13 [PATCH] MIPS: malta: remove mach-malta/malta-dtshim.h header file Thomas Bogendoerfer
@ 2020-09-21 20:31 ` Thomas Bogendoerfer
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2020-09-21 20:31 UTC (permalink / raw)
To: linux-mips, linux-kernel
On Sun, Sep 20, 2020 at 11:13:42PM +0200, Thomas Bogendoerfer wrote:
> To clean up mach-* directories move external declaration of malta_dt_shim()
> to mips-boards/malta.h and remove malta-dtshim.h.
>
> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
> ---
> arch/mips/include/asm/mach-malta/malta-dtshim.h | 25 -------------------------
> arch/mips/include/asm/mips-boards/malta.h | 2 ++
> arch/mips/mti-malta/malta-setup.c | 1 -
> 3 files changed, 2 insertions(+), 26 deletions(-)
> delete mode 100644 arch/mips/include/asm/mach-malta/malta-dtshim.h
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 ]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-21 21:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-20 21:13 [PATCH] MIPS: malta: remove mach-malta/malta-dtshim.h header file Thomas Bogendoerfer
2020-09-21 20:31 ` Thomas Bogendoerfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).