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/blackfin/boards | |
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/blackfin/boards')
-rw-r--r-- | arch/blackfin/boards/ipe337/ipe337.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/blackfin/boards/ipe337/ipe337.c b/arch/blackfin/boards/ipe337/ipe337.c index 269e7743fc..61bcd434f1 100644 --- a/arch/blackfin/boards/ipe337/ipe337.c +++ b/arch/blackfin/boards/ipe337/ipe337.c @@ -6,6 +6,7 @@ #include <fs.h> static struct device_d cfi_dev = { + .id = -1, .name = "cfi_flash", .map_base = 0x20000000, .size = 32 * 1024 * 1024, @@ -17,6 +18,7 @@ static struct memory_platform_data ram_pdata = { }; static struct device_d sdram_dev = { + .id = -1, .name = "mem", .map_base = 0x0, .size = 128 * 1024 * 1024, @@ -24,6 +26,7 @@ static struct device_d sdram_dev = { }; static struct device_d smc911x_dev = { + .id = -1, .name = "smc911x", .map_base = 0x24000000, .size = 4096, @@ -52,6 +55,7 @@ static int ipe337_devices_init(void) { device_initcall(ipe337_devices_init); static struct device_d blackfin_serial_device = { + .id = -1, .name = "blackfin_serial", .map_base = 0, .size = 4096, |