diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2010-09-17 17:11:57 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-09-20 08:58:52 +0200 |
commit | e85c6bb0a7d20e74ec47970647ae696df92d4c24 (patch) | |
tree | d306396d46d790426767170e571b7af9d0e0cfff /arch/arm/boards/a9m2410 | |
parent | 6a0ce693bef3a133c57706222966bccfd79148df (diff) | |
download | barebox-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/a9m2410')
-rw-r--r-- | arch/arm/boards/a9m2410/a9m2410.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/boards/a9m2410/a9m2410.c b/arch/arm/boards/a9m2410/a9m2410.c index 2c08125496..57d8fa39fd 100644 --- a/arch/arm/boards/a9m2410/a9m2410.c +++ b/arch/arm/boards/a9m2410/a9m2410.c @@ -41,6 +41,7 @@ static struct memory_platform_data ram_pdata = { }; static struct device_d sdram_dev = { + .id = -1, .name = "ram", .map_base = CS6_BASE, .platform_data = &ram_pdata, @@ -52,6 +53,7 @@ static struct s3c24x0_nand_platform_data nand_info = { }; static struct device_d nand_dev = { + .id = -1, .name = "s3c24x0_nand", .map_base = S3C24X0_NAND_BASE, .platform_data = &nand_info, @@ -63,6 +65,7 @@ static struct device_d nand_dev = { * GPIO3, data width is 32 bit */ static struct device_d network_dev = { + .id = -1, .name = "smc91c111", .map_base = CS1_BASE + 0x300, .size = 16, @@ -178,6 +181,7 @@ void __bare_init nand_boot(void) #endif static struct device_d a9m2410_serial_device = { + .id = -1, .name = "s3c24x0_serial", .map_base = UART1_BASE, .size = UART1_SIZE, |