summaryrefslogtreecommitdiffstats
path: root/arch/ppc/boards
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-09-17 17:11:57 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-09-20 08:58:52 +0200
commite85c6bb0a7d20e74ec47970647ae696df92d4c24 (patch)
treed306396d46d790426767170e571b7af9d0e0cfff /arch/ppc/boards
parent6a0ce693bef3a133c57706222966bccfd79148df (diff)
downloadbarebox-e85c6bb0a7d20e74ec47970647ae696df92d4c24.tar.gz
barebox-e85c6bb0a7d20e74ec47970647ae696df92d4c24.tar.xz
driver: use id as -1 for auto assigned id
before if you specify id = 0 the next available id will be taken otherwise fail if already registered now as in linux we use -1 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc/boards')
-rw-r--r--arch/ppc/boards/pcm030/pcm030.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/ppc/boards/pcm030/pcm030.c b/arch/ppc/boards/pcm030/pcm030.c
index f3845adf4c..8b43550942 100644
--- a/arch/ppc/boards/pcm030/pcm030.c
+++ b/arch/ppc/boards/pcm030/pcm030.c
@@ -38,6 +38,7 @@
#include <reloc.h>
struct device_d cfi_dev = {
+ .id = -1,
.name = "cfi_flash",
.map_base = 0xff000000,
.size = 16 * 1024 * 1024,
@@ -49,6 +50,7 @@ static struct memory_platform_data ram_pdata = {
};
struct device_d sdram_dev = {
+ .id = -1,
.name = "mem",
.map_base = 0x0,
.size = 64 * 1024 * 1024,
@@ -60,6 +62,7 @@ static struct mpc5xxx_fec_platform_data fec_info = {
};
struct device_d eth_dev = {
+ .id = -1,
.name = "fec_mpc5xxx",
.map_base = MPC5XXX_FEC,
.platform_data = &fec_info,
@@ -80,12 +83,14 @@ static int devices_init (void)
device_initcall(devices_init);
static struct device_d psc3 = {
+ .id = -1,
.name = "mpc5xxx_serial",
.map_base = MPC5XXX_PSC3,
.size = 4096,
};
static struct device_d psc6 = {
+ .id = -1,
.name = "mpc5xxx_serial",
.map_base = MPC5XXX_PSC6,
.size = 4096,