Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88412
b: refs/heads/master
c: 92bf435
h: refs/heads/master
v: v3
  • Loading branch information
Michael Holzheu authored and Heiko Carstens committed Apr 17, 2008
1 parent a457613 commit 02d34d8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 00966c0a5b00bc0afdc0bd0446adec271f8b098b
refs/heads/master: 92bf435f383a6193d59c687ce87ccca3529c68a1
4 changes: 2 additions & 2 deletions trunk/drivers/s390/char/tape_char.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ tapechar_setup_device(struct tape_device * device)
void
tapechar_cleanup_device(struct tape_device *device)
{
unregister_tape_dev(device->rt);
unregister_tape_dev(&device->cdev->dev, device->rt);
device->rt = NULL;
unregister_tape_dev(device->nt);
unregister_tape_dev(&device->cdev->dev, device->nt);
device->nt = NULL;
}

Expand Down
5 changes: 2 additions & 3 deletions trunk/drivers/s390/char/tape_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,10 @@ struct tape_class_device *register_tape_dev(
}
EXPORT_SYMBOL(register_tape_dev);

void unregister_tape_dev(struct tape_class_device *tcd)
void unregister_tape_dev(struct device *device, struct tape_class_device *tcd)
{
if (tcd != NULL && !IS_ERR(tcd)) {
sysfs_remove_link(&tcd->class_device->kobj,
tcd->mode_name);
sysfs_remove_link(&device->kobj, tcd->mode_name);
device_destroy(tape_class, tcd->char_device->dev);
cdev_del(tcd->char_device);
kfree(tcd);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/s390/char/tape_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ struct tape_class_device *register_tape_dev(
char * device_name,
char * node_name
);
void unregister_tape_dev(struct tape_class_device *tcd);
void unregister_tape_dev(struct device *device, struct tape_class_device *tcd);

#endif /* __TAPE_CLASS_H__ */

0 comments on commit 02d34d8

Please sign in to comment.