]> git.baikalelectronics.ru Git - kernel.git/commit
s390/ccwgroup: simplify ungrouping when driver deregisters
authorJulian Wiedmann <jwi@linux.ibm.com>
Wed, 5 May 2021 08:25:14 +0000 (10:25 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 7 Jun 2021 15:07:00 +0000 (17:07 +0200)
commit66ffbd2da8189c5a8c12f23481eec8addcba71ac
tree3f994caa2129217fd502dddcedd8ed3ae4990914
parentaf675e55a763242ab7bc57d12bc962e215ef11f8
s390/ccwgroup: simplify ungrouping when driver deregisters

driver_unregister() ends up calling __device_release_driver() for
each device that is bound to the driver. Thus ccwgroup_notifier() will
see a BUS_NOTIFY_UNBIND_DRIVER event for these ccwgroup devices, and
trigger the ungrouping.

So there's no need to also trigger the ungrouping from within
ccwgroup_driver_unregister(), remove it.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/cio/ccwgroup.c