sparc64: Initialize FHC/CLOCK LED platform_device 'id' field correctly.
authorDavid S. Miller <davem@davemloft.net>
Mon, 19 Jan 2009 06:42:15 +0000 (22:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Jan 2009 21:27:15 +0000 (13:27 -0800)
commitb7c18c1b2636ecb9ad76759f99dac6efd441fa92
tree10035a07cdcb5efee1d1b4a3371af2fea117cd64
parent62dfcd336c79c49f9aeb0acc99cf9a1832102dd5
sparc64: Initialize FHC/CLOCK LED platform_device 'id' field correctly.

There is only one clock board, so use -1 as the 'id' so we get just
the base name as the LED device name string.

There are multiple FHC boards potentially in a system so use the board
number as the 'id' value for that case.

Reported-by: Meelis Roos <mroos@linux.ee>
Tested-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/central.c