* [PATCH] sh: Fix compile error of Solution Engine
@ 2008-07-29 5:37 Nobuhiro Iwamatsu
2008-07-29 8:39 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Nobuhiro Iwamatsu @ 2008-07-29 5:37 UTC (permalink / raw)
To: linux-sh; +Cc: Adrian Bunk, linux-kernel, Paul Mundt
When I compiled Solution Engine, this become compile error
because plaform device of sh_eth device becomes enable.
When sh7710/sh7712 which could use sh_eth was chosen,
revised it so that platform device of sh_eth device became enable.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
---
arch/sh/boards/se/770x/setup.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/sh/boards/se/770x/setup.c b/arch/sh/boards/se/770x/setup.c
index cf4a5ba..6c64d77 100644
--- a/arch/sh/boards/se/770x/setup.c
+++ b/arch/sh/boards/se/770x/setup.c
@@ -113,6 +113,8 @@ static struct platform_device heartbeat_device = {
.resource = heartbeat_resources,
};
+#if defined(CONFIG_CPU_SUBTYPE_SH7710) ||\
+ defined(CONFIG_CPU_SUBTYPE_SH7712)
/* SH771X Ethernet driver */
static struct resource sh_eth0_resources[] = {
[0] = {
@@ -159,12 +161,16 @@ static struct platform_device sh_eth1_device = {
.num_resources = ARRAY_SIZE(sh_eth1_resources),
.resource = sh_eth1_resources,
};
+#endif
static struct platform_device *se_devices[] __initdata = {
&heartbeat_device,
&cf_ide_device,
+#if defined(CONFIG_CPU_SUBTYPE_SH7710) ||\
+ defined(CONFIG_CPU_SUBTYPE_SH7712)
&sh_eth0_device,
&sh_eth1_device,
+#endif
};
static int __init se_devices_setup(void)
-- 1.5.6.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] sh: Fix compile error of Solution Engine
2008-07-29 5:37 [PATCH] sh: Fix compile error of Solution Engine Nobuhiro Iwamatsu
@ 2008-07-29 8:39 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2008-07-29 8:39 UTC (permalink / raw)
To: Nobuhiro Iwamatsu; +Cc: linux-sh, Adrian Bunk, linux-kernel
On Tue, Jul 29, 2008 at 02:37:25PM +0900, Nobuhiro Iwamatsu wrote:
> When I compiled Solution Engine, this become compile error
> because plaform device of sh_eth device becomes enable.
> When sh7710/sh7712 which could use sh_eth was chosen,
> revised it so that platform device of sh_eth device became enable.
>
> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-29 8:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-29 5:37 [PATCH] sh: Fix compile error of Solution Engine Nobuhiro Iwamatsu
2008-07-29 8:39 ` Paul Mundt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox