diff options
Diffstat (limited to 'drivers/s390/char')
-rw-r--r-- | drivers/s390/char/tape_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/tape_core.c b/drivers/s390/char/tape_core.c index 27503a778fcb..6311018e6543 100644 --- a/drivers/s390/char/tape_core.c +++ b/drivers/s390/char/tape_core.c | |||
@@ -665,7 +665,7 @@ tape_generic_remove(struct ccw_device *cdev) | |||
665 | tape_cleanup_device(device); | 665 | tape_cleanup_device(device); |
666 | } | 666 | } |
667 | 667 | ||
668 | if (!dev_get_drvdata(&cdev->dev)) { | 668 | if (dev_get_drvdata(&cdev->dev)) { |
669 | sysfs_remove_group(&cdev->dev.kobj, &tape_attr_group); | 669 | sysfs_remove_group(&cdev->dev.kobj, &tape_attr_group); |
670 | dev_set_drvdata(&cdev->dev, tape_put_device(dev_get_drvdata(&cdev->dev))); | 670 | dev_set_drvdata(&cdev->dev, tape_put_device(dev_get_drvdata(&cdev->dev))); |
671 | } | 671 | } |