Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75708
b: refs/heads/master
c: dbc1272
h: refs/heads/master
v: v3
  • Loading branch information
Tony Jones authored and Greg Kroah-Hartman committed Jan 25, 2008
1 parent 8a669d0 commit d12f0cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 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: 891f78ea833edd4a1e524e15bfe297a7a84d81a0
refs/heads/master: dbc1272ed4a9ce45ecc50e7ea7d52e7413eb1a4f
14 changes: 6 additions & 8 deletions trunk/drivers/ide/ide-tape.c
Original file line number Diff line number Diff line change
Expand Up @@ -4724,10 +4724,8 @@ static void ide_tape_release(struct kref *kref)

drive->dsc_overlap = 0;
drive->driver_data = NULL;
class_device_destroy(idetape_sysfs_class,
MKDEV(IDETAPE_MAJOR, tape->minor));
class_device_destroy(idetape_sysfs_class,
MKDEV(IDETAPE_MAJOR, tape->minor + 128));
device_destroy(idetape_sysfs_class, MKDEV(IDETAPE_MAJOR, tape->minor));
device_destroy(idetape_sysfs_class, MKDEV(IDETAPE_MAJOR, tape->minor + 128));
idetape_devs[tape->minor] = NULL;
g->private_data = NULL;
put_disk(g);
Expand Down Expand Up @@ -4884,10 +4882,10 @@ static int ide_tape_probe(ide_drive_t *drive)

idetape_setup(drive, tape, minor);

class_device_create(idetape_sysfs_class, NULL,
MKDEV(IDETAPE_MAJOR, minor), &drive->gendev, "%s", tape->name);
class_device_create(idetape_sysfs_class, NULL,
MKDEV(IDETAPE_MAJOR, minor + 128), &drive->gendev, "n%s", tape->name);
device_create(idetape_sysfs_class, &drive->gendev,
MKDEV(IDETAPE_MAJOR, minor), "%s", tape->name);
device_create(idetape_sysfs_class, &drive->gendev,
MKDEV(IDETAPE_MAJOR, minor + 128), "n%s", tape->name);

g->fops = &idetape_block_ops;
ide_register_region(g);
Expand Down

0 comments on commit d12f0cd

Please sign in to comment.