aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2012-04-17 16:58:35 +1000
committerGreg Ungerer <gerg@uclinux.org>2012-04-17 16:58:35 +1000
commitbfdd769ac51cb68cb99902192fac81bc67cb23b0 (patch)
tree73d0bd876b1239a46cac30316f988d548eddd61b /arch
parentm68knommu: move and fix the 68VZ328 platform bootlogo.h (diff)
downloadlinux-dev-bfdd769ac51cb68cb99902192fac81bc67cb23b0.tar.xz
linux-dev-bfdd769ac51cb68cb99902192fac81bc67cb23b0.zip
m68knommu: fix id number for second eth device on 5275 ColdFire
The second ColdFire FEC ethernet device should have an id number of 1, not 0. Otherwise it clashes with the first FEC ethernet device. On booting a kernel on a 5275 based board you will get messages out of the kernel like this: <4>------------[ cut here ]------------ <4>WARNING: at fs/sysfs/dir.c:508 0x0a8b50() <4>sysfs: cannot create duplicate filename 'fec.0' And likely you won't be able to completely boot up after this at all. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/m68k/platform/coldfire/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/platform/coldfire/device.c b/arch/m68k/platform/coldfire/device.c
index fa50c48292ff..7af97362b95c 100644
--- a/arch/m68k/platform/coldfire/device.c
+++ b/arch/m68k/platform/coldfire/device.c
@@ -114,7 +114,7 @@ static struct resource mcf_fec1_resources[] = {
static struct platform_device mcf_fec1 = {
.name = "fec",
- .id = 0,
+ .id = 1,
.num_resources = ARRAY_SIZE(mcf_fec1_resources),
.resource = mcf_fec1_resources,
};