tty: use for_each_console() and WARN() on sysfs failures
authorKay Sievers <kay.sievers@vrfy.org>
Sun, 9 Jan 2011 15:39:14 +0000 (16:39 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 23 Jan 2011 03:15:00 +0000 (19:15 -0800)
commita2a6a822adc2a91c677cb60e9bc6ffe26fa90e9f
treeb222b20d29711cd766db1c0b2537780dc885b138
parentc55c63c6539499379ab4a7e8a5c0f857351fb946
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>
drivers/tty/tty_io.c
drivers/tty/vt/vt.c