diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2008-12-25 07:39:11 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-12-25 07:39:09 -0500 |
commit | d6a30761d8116b8de8a5b5e79e68cce81d36414b (patch) | |
tree | 0b8a95f531f5352833d6915acb43ca46942747bd /drivers/s390/cio | |
parent | 283fdd0b8ab102080dbffe4bcaae245f9ceda184 (diff) |
[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>
Diffstat (limited to 'drivers/s390/cio')
-rw-r--r-- | drivers/s390/cio/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index f831b6465c60..868aa1915380 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c | |||
@@ -965,7 +965,7 @@ io_subchannel_register(struct work_struct *work) | |||
965 | * be registered). We need to reprobe since we may now have sense id | 965 | * be registered). We need to reprobe since we may now have sense id |
966 | * information. | 966 | * information. |
967 | */ | 967 | */ |
968 | if (klist_node_attached(&cdev->dev.knode_parent)) { | 968 | if (device_is_registered(&cdev->dev)) { |
969 | if (!cdev->drv) { | 969 | if (!cdev->drv) { |
970 | ret = device_reprobe(&cdev->dev); | 970 | ret = device_reprobe(&cdev->dev); |
971 | if (ret) | 971 | if (ret) |