diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-15 20:29:34 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-16 09:43:02 +0200 |
commit | abe4560c8add1c58a944b36e8ea51b10968f4d7b (patch) | |
tree | 03976ccedc5bb0a92cbd1b8ded76ad00f9e2b072 /arch/blackfin/boards | |
parent | 158294a49aade9fde1000dd5403f40d0f15d64e3 (diff) | |
download | barebox-abe4560c8add1c58a944b36e8ea51b10968f4d7b.tar.gz barebox-abe4560c8add1c58a944b36e8ea51b10968f4d7b.tar.xz |
Use DEVICE_ID_DYNAMIC where applicable
We now have DEVICE_ID_DYNAMIC for dynamic allocation of device ids,
Use it where applicable.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/blackfin/boards')
-rw-r--r-- | arch/blackfin/boards/ipe337/ipe337.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/blackfin/boards/ipe337/ipe337.c b/arch/blackfin/boards/ipe337/ipe337.c index ee642d1824..3c5566d704 100644 --- a/arch/blackfin/boards/ipe337/ipe337.c +++ b/arch/blackfin/boards/ipe337/ipe337.c @@ -6,7 +6,7 @@ #include <fs.h> static int ipe337_devices_init(void) { - add_cfi_flash_device(-1, 0x20000000, 32 * 1024 * 1024, 0); + add_cfi_flash_device(DEVICE_ID_DYNAMIC, 0x20000000, 32 * 1024 * 1024, 0); add_mem_device("ram0", 0x0, 128 * 1024 * 1024, IORESOURCE_MEM_WRITEABLE); @@ -16,7 +16,7 @@ static int ipe337_devices_init(void) { mdelay(100); *pFIO0_FLAG_S = (1<<12); - add_generic_device("smc911x", -1, NULL, 0x24000000, 4096, + add_generic_device("smc911x", DEVICE_ID_DYNAMIC, NULL, 0x24000000, 4096, IORESOURCE_MEM, NULL); devfs_add_partition("nor0", 0x00000, 0x20000, PARTITION_FIXED, "self0"); @@ -31,7 +31,7 @@ device_initcall(ipe337_devices_init); static int blackfin_console_init(void) { - add_generic_device("blackfin_serial", -1, NULL, 0, 4096, + add_generic_device("blackfin_serial", DEVICE_ID_DYNAMIC, NULL, 0, 4096, IORESOURCE_MEM, NULL); return 0; |