[S390] ccwgroup device unregister.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 29 Jun 2006 12:56:52 +0000 (14:56 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 29 Jun 2006 12:56:52 +0000 (14:56 +0200)
commit887ab5992925736ab23985c35f8149739e9de354
tree5979c930c1ba34341e04e541f98b0584c58ac62b
parent231caa1cac555bdd5cb64bf91b554b38e8ddf715
[S390] ccwgroup device unregister.

Work around the problem that a device cannot be unregistered from
driver_for_each_device() because of klist node refcounting: Get device
after device owned by the driver to be unregistered with driver_find_device()
and then unregister it. This works because driver_get_device() gets us out of
the region of the elevated klist node refcount. driver_find_device() will
always get the next device in the list after the found one has been
unregistered.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/ccwgroup.c