summaryrefslogtreecommitdiff
path: root/drivers/s390/cio
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2008-12-25 12:39:10 (GMT)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2008-12-25 12:39:09 (GMT)
commit283fdd0b8ab102080dbffe4bcaae245f9ceda184 (patch)
treefb78943c1fbee185c35864613ad13fbda8a74e71 /drivers/s390/cio
parent90ed2b692fa75272d7395c4e4c2de4423d52f506 (diff)
downloadlinux-fsl-qoriq-283fdd0b8ab102080dbffe4bcaae245f9ceda184.tar.xz
[S390] cio: Dont call ->release directly.
Just put the cdev's reference count to give up our reference. 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c
index 2d31f06..f831b64 100644
--- a/drivers/s390/cio/device.c
+++ b/drivers/s390/cio/device.c
@@ -751,8 +751,8 @@ static int io_subchannel_initialize_dev(struct subchannel *sch,
/* Do first half of device_register. */
device_initialize(&cdev->dev);
if (!get_device(&sch->dev)) {
- if (cdev->dev.release)
- cdev->dev.release(&cdev->dev);
+ /* Release reference from device_initialize(). */
+ put_device(&cdev->dev);
return -ENODEV;
}
return 0;