mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
[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>
This commit is contained in:
parent
90ed2b692f
commit
283fdd0b8a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue