summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-09-17 17:11:57 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-09-20 08:58:52 +0200
commite85c6bb0a7d20e74ec47970647ae696df92d4c24 (patch)
treed306396d46d790426767170e571b7af9d0e0cfff /drivers
parent6a0ce693bef3a133c57706222966bccfd79148df (diff)
downloadbarebox-e85c6bb0a7d20e74ec47970647ae696df92d4c24.tar.gz
barebox-e85c6bb0a7d20e74ec47970647ae696df92d4c24.tar.xz
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 <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/serial/arm_dcc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c
index 151730b188..0199da30f9 100644
--- a/drivers/serial/arm_dcc.c
+++ b/drivers/serial/arm_dcc.c
@@ -155,6 +155,7 @@ static struct driver_d arm_dcc_driver = {
};
static struct device_d arm_dcc_device = {
+ .id = -1,
.name = "arm_dcc",
.size = 4096,
};