[PATCH] s390: ccw_device_probe_console return value
authorPeter Oberparleiter <peter.oberparleiter@de.ibm.com>
Wed, 1 Feb 2006 11:06:35 +0000 (03:06 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 1 Feb 2006 16:53:24 +0000 (08:53 -0800)
commit600b5d163d7434332539cac7be00f649cbbfedcc
tree3a999e6576a8593bf8b49d1e768f7e990eb78a3a
parent3633b0475eb269dcb85923b23b321505f06b9488
[PATCH] s390: ccw_device_probe_console return value

The return code of ccw_device_probe_console() is not properly handled.  It
should only return a valid ccw device pointer or a error value converted by
ERR_PTR.  Fix the console driver code to check with IS_ERR instead against
NULL.

Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/s390/char/con3215.c
drivers/s390/char/con3270.c
drivers/s390/cio/device.c