* [PATCH] ARM: shmobile: Remove EMEV2 header file
@ 2014-02-17 7:35 Magnus Damm
2014-02-18 0:09 ` Simon Horman
0 siblings, 1 reply; 5+ messages in thread
From: Magnus Damm @ 2014-02-17 7:35 UTC (permalink / raw)
To: linux-arm-kernel
From: Magnus Damm <damm@opensource.se>
There is no C board code left for the EMEV2 SoC, so
get rid of the emev2.h include file to save some lines.
While at it make functions static.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
Written against renesas-devel-v3.14-rc3-20140217
Depends on "[PATCH v2] ARM: shmobile: Remove KZM9D board code"
arch/arm/mach-shmobile/include/mach/emev2.h | 8 --------
arch/arm/mach-shmobile/setup-emev2.c | 7 ++++---
arch/arm/mach-shmobile/smp-emev2.c | 1 -
3 files changed, 4 insertions(+), 12 deletions(-)
--- 0001/arch/arm/mach-shmobile/include/mach/emev2.h
+++ /dev/null 2013-06-03 21:41:10.638032047 +0900
@@ -1,8 +0,0 @@
-#ifndef __ASM_EMEV2_H__
-#define __ASM_EMEV2_H__
-
-extern void emev2_map_io(void);
-extern void emev2_init_delay(void);
-extern struct smp_operations emev2_smp_ops;
-
-#endif /* __ASM_EMEV2_H__ */
--- 0001/arch/arm/mach-shmobile/setup-emev2.c
+++ work/arch/arm/mach-shmobile/setup-emev2.c 2014-02-17 16:30:05.000000000 +0900
@@ -21,7 +21,6 @@
#include <linux/init.h>
#include <linux/of_platform.h>
#include <mach/common.h>
-#include <mach/emev2.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
@@ -38,12 +37,12 @@ static struct map_desc emev2_io_desc[] _
#endif
};
-void __init emev2_map_io(void)
+static void __init emev2_map_io(void)
{
iotable_init(emev2_io_desc, ARRAY_SIZE(emev2_io_desc));
}
-void __init emev2_init_delay(void)
+static void __init emev2_init_delay(void)
{
shmobile_setup_delay(533, 1, 3); /* Cortex-A9 @ 533MHz */
}
@@ -59,6 +58,8 @@ static const char *emev2_boards_compat_d
NULL,
};
+extern struct smp_operations emev2_smp_ops;
+
DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)")
.smp = smp_ops(emev2_smp_ops),
.map_io = emev2_map_io,
--- 0001/arch/arm/mach-shmobile/smp-emev2.c
+++ work/arch/arm/mach-shmobile/smp-emev2.c 2014-02-17 16:25:23.000000000 +0900
@@ -24,7 +24,6 @@
#include <linux/io.h>
#include <linux/delay.h>
#include <mach/common.h>
-#include <mach/emev2.h>
#include <asm/smp_plat.h>
#include <asm/smp_scu.h>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: shmobile: Remove EMEV2 header file
2014-02-17 7:35 [PATCH] ARM: shmobile: Remove EMEV2 header file Magnus Damm
@ 2014-02-18 0:09 ` Simon Horman
2014-02-18 2:31 ` Simon Horman
0 siblings, 1 reply; 5+ messages in thread
From: Simon Horman @ 2014-02-18 0:09 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Feb 17, 2014 at 04:35:08PM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
>
> There is no C board code left for the EMEV2 SoC, so
> get rid of the emev2.h include file to save some lines.
> While at it make functions static.
>
> Signed-off-by: Magnus Damm <damm@opensource.se>
Thanks, I have queued this up.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: shmobile: Remove EMEV2 header file
2014-02-18 0:09 ` Simon Horman
@ 2014-02-18 2:31 ` Simon Horman
2014-02-18 2:35 ` Magnus Damm
0 siblings, 1 reply; 5+ messages in thread
From: Simon Horman @ 2014-02-18 2:31 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Feb 18, 2014 at 09:09:29AM +0900, Simon Horman wrote:
> On Mon, Feb 17, 2014 at 04:35:08PM +0900, Magnus Damm wrote:
> > From: Magnus Damm <damm@opensource.se>
> >
> > There is no C board code left for the EMEV2 SoC, so
> > get rid of the emev2.h include file to save some lines.
> > While at it make functions static.
> >
> > Signed-off-by: Magnus Damm <damm@opensource.se>
>
> Thanks, I have queued this up.
I have changed my mind and decided to defer this patch
to avoid a tedious dependency of an SoC patch on a board patch.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: shmobile: Remove EMEV2 header file
2014-02-18 2:31 ` Simon Horman
@ 2014-02-18 2:35 ` Magnus Damm
2014-03-07 2:38 ` Simon Horman
0 siblings, 1 reply; 5+ messages in thread
From: Magnus Damm @ 2014-02-18 2:35 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Feb 18, 2014 at 11:31 AM, Simon Horman <horms@verge.net.au> wrote:
> On Tue, Feb 18, 2014 at 09:09:29AM +0900, Simon Horman wrote:
>> On Mon, Feb 17, 2014 at 04:35:08PM +0900, Magnus Damm wrote:
>> > From: Magnus Damm <damm@opensource.se>
>> >
>> > There is no C board code left for the EMEV2 SoC, so
>> > get rid of the emev2.h include file to save some lines.
>> > While at it make functions static.
>> >
>> > Signed-off-by: Magnus Damm <damm@opensource.se>
>>
>> Thanks, I have queued this up.
>
> I have changed my mind and decided to defer this patch
> to avoid a tedious dependency of an SoC patch on a board patch.
That's fine. We can handle further cleanup later. Thanks for your help!
/ magnus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: shmobile: Remove EMEV2 header file
2014-02-18 2:35 ` Magnus Damm
@ 2014-03-07 2:38 ` Simon Horman
0 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2014-03-07 2:38 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Feb 18, 2014 at 11:35:25AM +0900, Magnus Damm wrote:
> On Tue, Feb 18, 2014 at 11:31 AM, Simon Horman <horms@verge.net.au> wrote:
> > On Tue, Feb 18, 2014 at 09:09:29AM +0900, Simon Horman wrote:
> >> On Mon, Feb 17, 2014 at 04:35:08PM +0900, Magnus Damm wrote:
> >> > From: Magnus Damm <damm@opensource.se>
> >> >
> >> > There is no C board code left for the EMEV2 SoC, so
> >> > get rid of the emev2.h include file to save some lines.
> >> > While at it make functions static.
> >> >
> >> > Signed-off-by: Magnus Damm <damm@opensource.se>
> >>
> >> Thanks, I have queued this up.
> >
> > I have changed my mind and decided to defer this patch
> > to avoid a tedious dependency of an SoC patch on a board patch.
>
> That's fine. We can handle further cleanup later. Thanks for your help!
I have now queued it up again.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-03-07 2:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-17 7:35 [PATCH] ARM: shmobile: Remove EMEV2 header file Magnus Damm
2014-02-18 0:09 ` Simon Horman
2014-02-18 2:31 ` Simon Horman
2014-02-18 2:35 ` Magnus Damm
2014-03-07 2:38 ` Simon Horman
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).