diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-15 20:29:34 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-16 09:43:02 +0200 |
commit | abe4560c8add1c58a944b36e8ea51b10968f4d7b (patch) | |
tree | 03976ccedc5bb0a92cbd1b8ded76ad00f9e2b072 /common | |
parent | 158294a49aade9fde1000dd5403f40d0f15d64e3 (diff) | |
download | barebox-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 'common')
-rw-r--r-- | common/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/console.c b/common/console.c index 83cc2a5a4d..37b86973a9 100644 --- a/common/console.c +++ b/common/console.c @@ -141,7 +141,7 @@ int console_register(struct console_device *newcdev) if (initialized == CONSOLE_UNINITIALIZED) console_init_early(); - dev->id = -1; + dev->id = DEVICE_ID_DYNAMIC; strcpy(dev->name, "cs"); if (newcdev->dev) dev_add_child(newcdev->dev, dev); |