From abe4560c8add1c58a944b36e8ea51b10968f4d7b Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sun, 15 Apr 2012 20:29:34 +0200 Subject: 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 --- common/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/console.c') 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); -- cgit v1.2.3