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/sandbox/board | |
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/sandbox/board')
-rw-r--r-- | arch/sandbox/board/board.c | 2 | ||||
-rw-r--r-- | arch/sandbox/board/hostfile.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sandbox/board/board.c b/arch/sandbox/board/board.c index 7d489fd906..d2f0667c98 100644 --- a/arch/sandbox/board/board.c +++ b/arch/sandbox/board/board.c @@ -28,7 +28,7 @@ #include <errno.h> static struct device_d tap_device = { - .id = -1, + .id = DEVICE_ID_DYNAMIC, .name = "tap", }; diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c index f5452afac9..90a97413b7 100644 --- a/arch/sandbox/board/hostfile.c +++ b/arch/sandbox/board/hostfile.c @@ -102,7 +102,7 @@ device_initcall(hf_init); int barebox_register_filedev(struct hf_platform_data *hf) { - return !add_generic_device("hostfile", -1, NULL, hf->base, hf->size, + return !add_generic_device("hostfile", DEVICE_ID_DYNAMIC, NULL, hf->base, hf->size, IORESOURCE_MEM, hf); } |