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 --- arch/arm/boards/mmccpu/init.c | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/arm/boards/mmccpu') diff --git a/arch/arm/boards/mmccpu/init.c b/arch/arm/boards/mmccpu/init.c index 4e6138705e..7cba01c4f0 100644 --- a/arch/arm/boards/mmccpu/init.c +++ b/arch/arm/boards/mmccpu/init.c @@ -38,6 +38,7 @@ #include static struct device_d cfi_dev = { + .id = -1, .name = "cfi_flash", .map_base = AT91_CHIPSELECT_0, .size = 0, /* zero means autodetect size */ -- cgit v1.2.3