summaryrefslogtreecommitdiffstats
path: root/arch/sh/boards
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu2008-07-29 07:37:25 +0200
committerPaul Mundt2008-07-29 10:39:58 +0200
commit4864841a34ad77a5054f20d18453ae38a926afd8 (patch)
tree80ab3e3eaf3356b3fcb5f724a8bbb6e4120a8dd5 /arch/sh/boards
parentsh: Proper __put_user_asm() size mismatch fix. (diff)
downloadkernel-qcow2-linux-4864841a34ad77a5054f20d18453ae38a926afd8.tar.gz
kernel-qcow2-linux-4864841a34ad77a5054f20d18453ae38a926afd8.tar.xz
kernel-qcow2-linux-4864841a34ad77a5054f20d18453ae38a926afd8.zip
sh: Fix compile error of Solution Engine
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> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards')
-rw-r--r--arch/sh/boards/se/770x/setup.c6
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 cf4a5ba12df4..6c64d774da3a 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)