diff options
-rw-r--r-- | drivers/s390/cio/device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index 2d31f06a913e..f831b6465c60 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, | |||
751 | /* Do first half of device_register. */ | 751 | /* Do first half of device_register. */ |
752 | device_initialize(&cdev->dev); | 752 | device_initialize(&cdev->dev); |
753 | if (!get_device(&sch->dev)) { | 753 | if (!get_device(&sch->dev)) { |
754 | if (cdev->dev.release) | 754 | /* Release reference from device_initialize(). */ |
755 | cdev->dev.release(&cdev->dev); | 755 | put_device(&cdev->dev); |
756 | return -ENODEV; | 756 | return -ENODEV; |
757 | } | 757 | } |
758 | return 0; | 758 | return 0; |