From e85c6bb0a7d20e74ec47970647ae696df92d4c24 Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Fri, 17 Sep 2010 17:11:57 +0200 Subject: driver: use id as -1 for auto assigned id before if you specify id = 0 the next available id will be taken otherwise fail if already registered now as in linux we use -1 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Sascha Hauer --- common/startup.c | 1 + 1 file changed, 1 insertion(+) (limited to 'common') diff --git a/common/startup.c b/common/startup.c index 7fa90991ad..84a59c5cae 100644 --- a/common/startup.c +++ b/common/startup.c @@ -86,6 +86,7 @@ static struct memory_platform_data default_env_platform_data = { }; static struct device_d default_env_dev = { + .id = -1, .name = "mem", .platform_data = &default_env_platform_data, }; -- cgit v1.2.3