Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144020
b: refs/heads/master
c: 4d7a3cd
h: refs/heads/master
v: v3
  • Loading branch information
Frank Munzert authored and Martin Schwidefsky committed Apr 23, 2009
1 parent 8cd7d51 commit 626ada8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 17 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: e1c805309d19c69d4ebeac38724076fa86feacdf
refs/heads/master: 4d7a3cdfb4c9aa1e2ce61f3b16b24eb6acf6726d
2 changes: 1 addition & 1 deletion trunk/drivers/s390/char/tape.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ extern int tape_mtop(struct tape_device *, int, int);
extern void tape_state_set(struct tape_device *, enum tape_state);

extern int tape_generic_online(struct tape_device *, struct tape_discipline *);
extern int tape_generic_offline(struct tape_device *device);
extern int tape_generic_offline(struct ccw_device *);

/* Externals from tape_devmap.c */
extern int tape_generic_probe(struct ccw_device *);
Expand Down
8 changes: 1 addition & 7 deletions trunk/drivers/s390/char/tape_34xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1294,20 +1294,14 @@ tape_34xx_online(struct ccw_device *cdev)
);
}

static int
tape_34xx_offline(struct ccw_device *cdev)
{
return tape_generic_offline(cdev->dev.driver_data);
}

static struct ccw_driver tape_34xx_driver = {
.name = "tape_34xx",
.owner = THIS_MODULE,
.ids = tape_34xx_ids,
.probe = tape_generic_probe,
.remove = tape_generic_remove,
.set_online = tape_34xx_online,
.set_offline = tape_34xx_offline,
.set_offline = tape_generic_offline,
};

static int
Expand Down
8 changes: 1 addition & 7 deletions trunk/drivers/s390/char/tape_3590.c
Original file line number Diff line number Diff line change
Expand Up @@ -1707,19 +1707,13 @@ tape_3590_online(struct ccw_device *cdev)
&tape_discipline_3590);
}

static int
tape_3590_offline(struct ccw_device *cdev)
{
return tape_generic_offline(cdev->dev.driver_data);
}

static struct ccw_driver tape_3590_driver = {
.name = "tape_3590",
.owner = THIS_MODULE,
.ids = tape_3590_ids,
.probe = tape_generic_probe,
.remove = tape_generic_remove,
.set_offline = tape_3590_offline,
.set_offline = tape_generic_offline,
.set_online = tape_3590_online,
};

Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/s390/char/tape_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,11 @@ tape_cleanup_device(struct tape_device *device)
* Manual offline is only allowed while the drive is not in use.
*/
int
tape_generic_offline(struct tape_device *device)
tape_generic_offline(struct ccw_device *cdev)
{
struct tape_device *device;

device = cdev->dev.driver_data;
if (!device) {
return -ENODEV;
}
Expand Down

0 comments on commit 626ada8

Please sign in to comment.