aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ide-scsi.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/scsi/ide-scsi.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/scsi/ide-scsi.c')
-rw-r--r--drivers/scsi/ide-scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c
index d9a2cc09f5c6..02bd5c487d1f 100644
--- a/drivers/scsi/ide-scsi.c
+++ b/drivers/scsi/ide-scsi.c
@@ -460,6 +460,7 @@ static void idescsi_setup (ide_drive_t *drive, idescsi_scsi_t *scsi)
460 460
461 drive->pc_callback = ide_scsi_callback; 461 drive->pc_callback = ide_scsi_callback;
462 462
463 ide_proc_register_driver(drive, scsi->driver);
463 idescsi_add_settings(drive); 464 idescsi_add_settings(drive);
464} 465}
465 466
@@ -851,7 +852,6 @@ static int ide_scsi_probe(ide_drive_t *drive)
851 idescsi->host = host; 852 idescsi->host = host;
852 idescsi->disk = g; 853 idescsi->disk = g;
853 g->private_data = &idescsi->driver; 854 g->private_data = &idescsi->driver;
854 ide_proc_register_driver(drive, &idescsi_driver);
855 err = 0; 855 err = 0;
856 idescsi_setup(drive, idescsi); 856 idescsi_setup(drive, idescsi);
857 g->fops = &idescsi_ops; 857 g->fops = &idescsi_ops;