From abe4560c8add1c58a944b36e8ea51b10968f4d7b Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sun, 15 Apr 2012 20:29:34 +0200 Subject: 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 --- arch/sandbox/board/board.c | 2 +- arch/sandbox/board/hostfile.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/sandbox/board') 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 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); } -- cgit v1.2.3