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/scb9328 | |
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/scb9328')
-rw-r--r-- | arch/arm/boards/scb9328/scb9328.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/boards/scb9328/scb9328.c b/arch/arm/boards/scb9328/scb9328.c index c0d4199880..4960922f4e 100644 --- a/arch/arm/boards/scb9328/scb9328.c +++ b/arch/arm/boards/scb9328/scb9328.c @@ -33,6 +33,7 @@ #include <dm9000.h> static struct device_d cfi_dev = { + .id = -1, .name = "cfi_flash", .map_base = 0x10000000, @@ -45,6 +46,7 @@ static struct memory_platform_data sdram_pdata = { }; static struct device_d sdram_dev = { + .id = -1, .name = "mem", .map_base = 0x08000000, .size = 16 * 1024 * 1024, @@ -59,6 +61,7 @@ static struct dm9000_platform_data dm9000_data = { }; static struct device_d dm9000_dev = { + .id = -1, .name = "dm9000", .map_base = 0x16000000, .size = 8, @@ -104,6 +107,7 @@ static int scb9328_devices_init(void) { device_initcall(scb9328_devices_init); static struct device_d scb9328_serial_device = { + .id = -1, .name = "imx_serial", .map_base = IMX_UART1_BASE, .size = 4096, |