[S390] cio: fix ccw group device cleanup
authorPeter Oberparleiter <peter.oberparleiter@de.ibm.com>
Thu, 21 Aug 2008 17:46:36 +0000 (19:46 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 21 Aug 2008 17:46:40 +0000 (19:46 +0200)
commit16f7f9564c3ae190954f2ec55f385a268b93ac4d
treece1cfe665c047e39a5ae67840a00074267efb38d
parent0686e402c365c92396d4c7abfaa24810f9cb77cc
[S390] cio: fix ccw group device cleanup

Fix ccw group device initialization: initialize device object before
using reference counting during cleanup.

Fixes the following message when group device initialization fails
(e.g. because too few devices where specified):

  kobject: '<NULL>' (..): is not initialized, yet kobject_put() is
           being called.

Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/ccwgroup.c