aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/viotape.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/viotape.c')
-rw-r--r--drivers/char/viotape.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/char/viotape.c b/drivers/char/viotape.c
index 11c7e9de5958..ebc337acca15 100644
--- a/drivers/char/viotape.c
+++ b/drivers/char/viotape.c
@@ -246,7 +246,6 @@ static struct device *tape_device[VIOTAPE_MAX_TAPE];
246 */ 246 */
247static struct { 247static struct {
248 unsigned char cur_part; 248 unsigned char cur_part;
249 int dev_handle;
250 unsigned char part_stat_rwi[MAX_PARTITIONS]; 249 unsigned char part_stat_rwi[MAX_PARTITIONS];
251} state[VIOTAPE_MAX_TAPE]; 250} state[VIOTAPE_MAX_TAPE];
252 251
@@ -964,7 +963,6 @@ static int viotape_probe(struct vio_dev *vdev, const struct vio_device_id *id)
964 devfs_mk_cdev(MKDEV(VIOTAPE_MAJOR, i | 0x80), 963 devfs_mk_cdev(MKDEV(VIOTAPE_MAJOR, i | 0x80),
965 S_IFCHR | S_IRUSR | S_IWUSR, "iseries/nvt%d", i); 964 S_IFCHR | S_IRUSR | S_IWUSR, "iseries/nvt%d", i);
966 sprintf(tapename, "iseries/vt%d", i); 965 sprintf(tapename, "iseries/vt%d", i);
967 state[i].dev_handle = devfs_register_tape(tapename);
968 printk(VIOTAPE_KERN_INFO "tape %s is iSeries " 966 printk(VIOTAPE_KERN_INFO "tape %s is iSeries "
969 "resource %10.10s type %4.4s, model %3.3s\n", 967 "resource %10.10s type %4.4s, model %3.3s\n",
970 tapename, viotape_unitinfo[i].rsrcname, 968 tapename, viotape_unitinfo[i].rsrcname,
@@ -978,7 +976,6 @@ static int viotape_remove(struct vio_dev *vdev)
978 976
979 devfs_remove("iseries/nvt%d", i); 977 devfs_remove("iseries/nvt%d", i);
980 devfs_remove("iseries/vt%d", i); 978 devfs_remove("iseries/vt%d", i);
981 devfs_unregister_tape(state[i].dev_handle);
982 class_device_destroy(tape_class, MKDEV(VIOTAPE_MAJOR, i | 0x80)); 979 class_device_destroy(tape_class, MKDEV(VIOTAPE_MAJOR, i | 0x80));
983 class_device_destroy(tape_class, MKDEV(VIOTAPE_MAJOR, i)); 980 class_device_destroy(tape_class, MKDEV(VIOTAPE_MAJOR, i));
984 return 0; 981 return 0;