projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90ed2b6
)
[S390] cio: Dont call ->release directly.
author
Cornelia Huck
<cornelia.huck@de.ibm.com>
Thu, 25 Dec 2008 12:39:10 +0000
(13:39 +0100)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Thu, 25 Dec 2008 12:39:09 +0000
(13:39 +0100)
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>
drivers/s390/cio/device.c
patch
|
blob
|
history
diff --git
a/drivers/s390/cio/device.c
b/drivers/s390/cio/device.c
index
2d31f06
..
f831b64
100644
(file)
--- 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.releas
e(&cdev->dev);
+ /* Release reference from device_initialize(). */
+
put_devic
e(&cdev->dev);
return -ENODEV;
}
return 0;