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/arm/boards/nhk8815 | |
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/arm/boards/nhk8815')
-rw-r--r-- | arch/arm/boards/nhk8815/setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/boards/nhk8815/setup.c b/arch/arm/boards/nhk8815/setup.c index 42d981cbfd..ae76124c7f 100644 --- a/arch/arm/boards/nhk8815/setup.c +++ b/arch/arm/boards/nhk8815/setup.c @@ -69,7 +69,7 @@ static struct resource nhk8815_nand_resources[] = { }; static struct device_d nhk8815_nand_device = { - .id = -1, + .id = DEVICE_ID_DYNAMIC, .name = "nomadik_nand", .num_resources = ARRAY_SIZE(nhk8815_nand_resources), .resource = nhk8815_nand_resources, @@ -95,7 +95,7 @@ static int nhk8815_devices_init(void) writel(0x0000305b, FSMC_BCR(1)); writel(0x00033f33, FSMC_BTR(1)); - add_generic_device("smc91c111", -1, NULL, 0x34000300, 16, + add_generic_device("smc91c111", DEVICE_ID_DYNAMIC, NULL, 0x34000300, 16, IORESOURCE_MEM, NULL); register_device(&nhk8815_nand_device); |