Skip to content

Commit

Permalink
m68knommu: fix id number for second eth device on 5275 ColdFire
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Ungerer committed Apr 17, 2012
1 parent 89d7860 commit bfdd769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/m68k/platform/coldfire/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit bfdd769

Please sign in to comment.