projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1b283d
)
[S390] tape: fix tape remove function
author
Martin Schwidefsky
<
[email protected]
>
Mon, 7 Dec 2009 11:52:02 +0000
(12:52 +0100)
committer
Martin Schwidefsky
<
[email protected]
>
Mon, 7 Dec 2009 11:51:36 +0000
(12:51 +0100)
Fix a bug introduced with git commit
dff59b64af94dc58
:
- if (cdev->dev.driver_data != NULL) {
+ if (!dev_get_drvdata(&cdev->dev)) {
These two are not equivalent.
Signed-off-by: Martin Schwidefsky <
[email protected]
>
drivers/s390/char/tape_core.c
patch
|
blob
|
history
diff --git
a/drivers/s390/char/tape_core.c
b/drivers/s390/char/tape_core.c
index 27503a778fcbd19f25c7e0e8380f1b613e7f97f7..6311018e65432506568bc713ab2e7575f7689a81 100644
(file)
--- 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)
tape_cleanup_device(device);
}
- if (
!
dev_get_drvdata(&cdev->dev)) {
+ if (dev_get_drvdata(&cdev->dev)) {
sysfs_remove_group(&cdev->dev.kobj, &tape_attr_group);
dev_set_drvdata(&cdev->dev, tape_put_device(dev_get_drvdata(&cdev->dev)));
}