summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-04-15 20:29:34 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-04-16 09:43:02 +0200
commitabe4560c8add1c58a944b36e8ea51b10968f4d7b (patch)
tree03976ccedc5bb0a92cbd1b8ded76ad00f9e2b072 /include
parent158294a49aade9fde1000dd5403f40d0f15d64e3 (diff)
downloadbarebox-abe4560c8add1c58a944b36e8ea51b10968f4d7b.tar.gz
barebox-abe4560c8add1c58a944b36e8ea51b10968f4d7b.tar.xz
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/driver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/driver.h b/include/driver.h
index 4efa9642b..09dd1e45c 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -211,7 +211,7 @@ struct device_d *add_generic_device_res(const char* devname, int id,
static inline struct device_d *add_mem_device(const char *name, resource_size_t start,
resource_size_t size, unsigned int flags)
{
- return add_generic_device("mem", -1, name, start, size,
+ return add_generic_device("mem", DEVICE_ID_DYNAMIC, name, start, size,
IORESOURCE_MEM | flags, NULL);
}