s390/cio: split subchannel registration
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Sat, 13 Apr 2013 10:58:55 +0000 (12:58 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 17 Apr 2013 12:07:31 +0000 (14:07 +0200)
commitc135ad1caffe2b35d6316758a605a2b63ca22bb3
treef1b34819c6d3c1102cea9cc4d202013ef01d3fa9
parentf10ccca7a555f5e80ed7ecff58e7dfdab03860da
s390/cio: split subchannel registration

Split the subchannel registration in device_initialize and device_add
and move the initialization part inside the allocation function. With
this change we can use refcounting during the complete lifespan of a
subchannel which is important for devices where we do the actually
registration at a later time.

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/css.c