summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c
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/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c
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/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c')
-rw-r--r--arch/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c b/arch/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c
index 1fd0afda2d..807fea3f1e 100644
--- a/arch/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c
+++ b/arch/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c
@@ -85,6 +85,7 @@ static struct fec_platform_data fec_info = {
};
static struct device_d fec_dev = {
+ .id = -1,
.name = "fec_imx",
.map_base = IMX_FEC_BASE,
.platform_data = &fec_info,
@@ -96,6 +97,7 @@ static struct memory_platform_data sdram_pdata = {
};
static struct device_d sdram0_dev = {
+ .id = -1,
.name = "mem",
.map_base = IMX_SDRAM_CS0,
.size = 64 * 1024 * 1024,
@@ -108,6 +110,7 @@ struct imx_nand_platform_data nand_info = {
};
static struct device_d nand_dev = {
+ .id = -1,
.name = "imx_nand",
.map_base = IMX_NFC_BASE,
.platform_data = &nand_info,
@@ -140,6 +143,7 @@ static struct imx_fb_platform_data eukrea_cpuimx25_fb_data = {
static struct device_d imxfb_dev = {
+ .id = -1,
.name = "imxfb",
.map_base = 0x53fbc000,
.size = 0x1000,
@@ -243,6 +247,7 @@ static int eukrea_cpuimx25_devices_init(void)
device_initcall(eukrea_cpuimx25_devices_init);
static struct device_d eukrea_cpuimx25_serial_device = {
+ .id = -1,
.name = "imx_serial",
.map_base = IMX_UART1_BASE,
.size = 16 * 1024,