s390/cio: fix early init counter usage
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Sat, 13 Apr 2013 11:06:27 +0000 (13:06 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 17 Apr 2013 12:07:33 +0000 (14:07 +0200)
commit0ad8f714a135cf993606c21fc1ed0e303ef17c0d
tree78ce400a47edecdce1921f2bb6cc536009778bb5
parent4e5ebd51214a1851841f952e9e5b5072ce5f9da4
s390/cio: fix early init counter usage

Via ccw_device_init_count we keep track of how many devices are in
asynchronous device recognition/initialization. For early devices this
variable was not only used prior to its initialization but used
incorrectly (incremented but never decremented). Fix this by using static
initialization for this variable (and friends), make them visible to
device.c only, and decrement the counter after recognition of early
devices is finished.

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>
drivers/s390/cio/device.c
drivers/s390/cio/device.h
This page took 0.034462 seconds and 5 git commands to generate.