summaryrefslogtreecommitdiffstats
path: root/drivers/tty/vt
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-01-09 16:39:14 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-01-22 19:15:00 -0800
commita2a6a822adc2a91c677cb60e9bc6ffe26fa90e9f (patch)
treeb222b20d29711cd766db1c0b2537780dc885b138 /drivers/tty/vt
parentc55c63c6539499379ab4a7e8a5c0f857351fb946 (diff)
downloadop-kernel-dev-a2a6a822adc2a91c677cb60e9bc6ffe26fa90e9f.zip
op-kernel-dev-a2a6a822adc2a91c677cb60e9bc6ffe26fa90e9f.tar.gz
tty: use for_each_console() and WARN() on sysfs failures
This fixes the build warnings in the tty code, and uses the proper function for iterating over the console devices. Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/tty/vt')
-rw-r--r--drivers/tty/vt/vt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index 4f6ae05..9550618 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -2994,7 +2994,7 @@ int __init vty_init(const struct file_operations *console_fops)
if (IS_ERR(tty0dev))
tty0dev = NULL;
else
- device_create_file(tty0dev, &dev_attr_active);
+ WARN_ON(device_create_file(tty0dev, &dev_attr_active) < 0);
vcs_init();
OpenPOWER on IntegriCloud