aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-tape.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-10 16:39:27 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-10 16:39:27 -0400
commit1e874f448365b80e69b8a60b8b575b17f00811f3 (patch)
tree6a79a12ffdcaa12f5f89356527c1ab02014c751b /drivers/ide/ide-tape.c
parent3ceca727fe3a38dd8d7a3adf938fefda83eee8af (diff)
ide: call ide_proc_register_driver() later
Call ide_proc_register_driver() in ide*_setup() (just before ide*_add_settings() call) instead of in ->probe method. Despite being basically a preparation for /proc/ide/hd*/settings rework this is a nice cleanup in itself. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-tape.c')
-rw-r--r--drivers/ide/ide-tape.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index 874e60fc85d1..f41983e4a4e4 100644
--- a/drivers/ide/ide-tape.c
+++ b/drivers/ide/ide-tape.c
@@ -2514,6 +2514,7 @@ static void idetape_setup(ide_drive_t *drive, idetape_tape_t *tape, int minor)
2514 tape->best_dsc_rw_freq * 1000 / HZ, 2514 tape->best_dsc_rw_freq * 1000 / HZ,
2515 drive->using_dma ? ", DMA":""); 2515 drive->using_dma ? ", DMA":"");
2516 2516
2517 ide_proc_register_driver(drive, tape->driver);
2517 idetape_add_settings(drive); 2518 idetape_add_settings(drive);
2518} 2519}
2519 2520
@@ -2669,8 +2670,6 @@ static int ide_tape_probe(ide_drive_t *drive)
2669 2670
2670 ide_init_disk(g, drive); 2671 ide_init_disk(g, drive);
2671 2672
2672 ide_proc_register_driver(drive, &idetape_driver);
2673
2674 kref_init(&tape->kref); 2673 kref_init(&tape->kref);
2675 2674
2676 tape->drive = drive; 2675 tape->drive = drive;