summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/pcm037
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/pcm037
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/pcm037')
-rw-r--r--arch/arm/boards/pcm037/pcm037.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/boards/pcm037/pcm037.c b/arch/arm/boards/pcm037/pcm037.c
index 4022cf4ef9..89e248190a 100644
--- a/arch/arm/boards/pcm037/pcm037.c
+++ b/arch/arm/boards/pcm037/pcm037.c
@@ -44,6 +44,7 @@
* CS line 0, data width is 16 bit
*/
static struct device_d cfi_dev = {
+ .id = -1,
.name = "cfi_flash",
.map_base = IMX_CS0_BASE,
.size = 32 * 1024 * 1024, /* area size */
@@ -59,6 +60,7 @@ static struct memory_platform_data sram_dev_pdata0 = {
};
static struct device_d sram_dev = {
+ .id = -1,
.name = "mem",
.map_base = IMX_CS4_BASE,
.size = IMX_CS4_RANGE, /* area size */
@@ -71,6 +73,7 @@ static struct device_d sram_dev = {
* GPIO3, data width is 16 bit
*/
static struct device_d network_dev = {
+ .id = -1,
.name = "smc911x",
.map_base = IMX_CS1_BASE,
.size = IMX_CS1_RANGE, /* area size */
@@ -88,6 +91,7 @@ static struct memory_platform_data ram_dev_pdata0 = {
};
static struct device_d sdram0_dev = {
+ .id = -1,
.name = "mem",
.map_base = IMX_SDRAM_CS0,
.size = SDRAM0 * 1024 * 1024, /* fix size */
@@ -108,6 +112,7 @@ static struct memory_platform_data ram_dev_pdata1 = {
};
static struct device_d sdram1_dev = {
+ .id = -1,
.name = "mem",
.map_base = IMX_SDRAM_CS1,
.size = SDRAM1 * 1024 * 1024, /* fix size */
@@ -122,6 +127,7 @@ struct imx_nand_platform_data nand_info = {
};
static struct device_d nand_dev = {
+ .id = -1,
.name = "imx_nand",
.map_base = 0xB8000000,
.platform_data = &nand_info,
@@ -129,12 +135,14 @@ static struct device_d nand_dev = {
#ifdef CONFIG_USB
static struct device_d usbotg_dev = {
+ .id = -1,
.name = "ehci",
.map_base = IMX_OTG_BASE,
.size = 0x200,
};
static struct device_d usbh2_dev = {
+ .id = -1,
.name = "ehci",
.map_base = IMX_OTG_BASE + 0x400,
.size = 0x200,
@@ -313,6 +321,7 @@ static int imx31_devices_init(void)
device_initcall(imx31_devices_init);
static struct device_d imx31_serial_device = {
+ .id = -1,
.name = "imx_serial",
.map_base = IMX_UART1_BASE,
.size = 16 * 1024,