[S390] cio: Use unbind/bind instead of unregister/register.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 26 Mar 2009 14:24:05 +0000 (15:24 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 26 Mar 2009 14:24:12 +0000 (15:24 +0100)
commiteb32ae8d0e052d1a287f99f93130ea2ad9af317e
treea2841ecbe3768fe248b798a311fa2ebdd6aa0907
parent1485c5c88483d200c9c4c71ed7e8eef1a1e317a1
[S390] cio: Use unbind/bind instead of unregister/register.

The common I/O layer may encounter a situation where the
device number of a ccw device has changed or a device
driver doesn't want to keep a formerly disconnected device
becoming operational again. Instead of using device_del()/
device_add() as now, we can just unbind the driver from the
device and rebind it to get the desired effect (rebinding)
with less overhead.

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