diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-08-11 16:19:20 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-08-12 14:49:32 +0200 |
commit | ad327344c94e8cb48c83ca984ff9e2343fbe9810 (patch) | |
tree | 219874a1df9441cdea370b0bc66eb3cc0427c917 /include | |
parent | a231dcdf78007dd0c02c88b30cd0095bda0b7a3a (diff) | |
download | barebox-ad327344c94e8cb48c83ca984ff9e2343fbe9810.tar.gz barebox-ad327344c94e8cb48c83ca984ff9e2343fbe9810.tar.xz |
driver: set DEVICE_ID_DYNAMIC to -2 and DEVICE_ID_SINGLE to -1
so we can have the same behaviour as in the kernel for id = -1
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/driver.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/driver.h b/include/driver.h index 0a8dc8edd3..0fecc7a670 100644 --- a/include/driver.h +++ b/include/driver.h @@ -127,9 +127,9 @@ struct driver_d { #define RW_SIZE_MASK 0x7 /* dynamically assign the next free id */ -#define DEVICE_ID_DYNAMIC -1 +#define DEVICE_ID_DYNAMIC -2 /* do not use an id (only one device available */ -#define DEVICE_ID_SINGLE -2 +#define DEVICE_ID_SINGLE -1 /* Register devices and drivers. */ |