• Cornelia Huck's avatar
    [S390] ccwgroup device unregister. · 887ab599
    Cornelia Huck authored
    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: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
    Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    887ab599
ccwgroup.c 10.2 KB