]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit89356e7e3e40c5dba744b0141319d14e183045fb
treef1b34819c6d3c1102cea9cc4d202013ef01d3fa9
parent29e68c7a06c1df461ad6d6874a668dca4234b931
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