[S390] cio: Use device_is_registered().
Check if a ccw device is registered via device_is_registered() and not via the old kludge of checking the membership in driver core internal klists. Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
Родитель
283fdd0b8a
Коммит
d6a30761d8
|
@ -965,7 +965,7 @@ io_subchannel_register(struct work_struct *work)
|
||||||
* be registered). We need to reprobe since we may now have sense id
|
* be registered). We need to reprobe since we may now have sense id
|
||||||
* information.
|
* information.
|
||||||
*/
|
*/
|
||||||
if (klist_node_attached(&cdev->dev.knode_parent)) {
|
if (device_is_registered(&cdev->dev)) {
|
||||||
if (!cdev->drv) {
|
if (!cdev->drv) {
|
||||||
ret = device_reprobe(&cdev->dev);
|
ret = device_reprobe(&cdev->dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче