diff options
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); } |