s390/cio: wait_cons_dev don't use static variable
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Sat, 13 Apr 2013 10:53:21 +0000 (12:53 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 17 Apr 2013 12:07:30 +0000 (14:07 +0200)
commit188561a462d3b82451d6ba09e2e32c9ba2c9938c
treeced10861aad02cad5cac0e232c8c85964dd2dc1f
parent91c15a951091a64a5f048ff93292057e3b590b6f
s390/cio: wait_cons_dev don't use static variable

wait_cons_dev is used to busy wait for an interrupt on the console
ccw device. Stop using the static console_subchannel and add a
parameter to this function to specify on which ccw device/subchannel
we have to do the polling.

While at it rename the function to ccw_device_wait_idle and
move it to device.c

Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/ccwdev.h
arch/s390/include/asm/cio.h
drivers/s390/char/con3215.c
drivers/s390/char/raw3270.c
drivers/s390/cio/cio.c
drivers/s390/cio/cio.h
drivers/s390/cio/device.c