aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-probe.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-02 13:56:43 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-02 13:56:43 -0500
commitd9270a3f1d5b6f9de58250e8ecdba4c48c54c20b (patch)
tree777f519f513035c23e36890357e608e0581edcde /drivers/ide/ide-probe.c
parent327617e1da15c3f04bfc50018b0319bd40849022 (diff)
ide: move create_proc_ide_drives() call to ide_device_add_all()
* Un-static create_proc_ide_drives() and call it from ide_device_add_all(). While at it: * Rename create_proc_ide_drives() to ide_proc_port_register_devices(). Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-probe.c')
-rw-r--r--drivers/ide/ide-probe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c
index 1ef293757043..c8d533a1015e 100644
--- a/drivers/ide/ide-probe.c
+++ b/drivers/ide/ide-probe.c
@@ -1453,8 +1453,10 @@ int ide_device_add_all(u8 *idx, const struct ide_port_info *d)
1453 1453
1454 hwif = &ide_hwifs[idx[i]]; 1454 hwif = &ide_hwifs[idx[i]];
1455 1455
1456 if (hwif->present) 1456 if (hwif->present) {
1457 ide_proc_register_port(hwif); 1457 ide_proc_register_port(hwif);
1458 ide_proc_port_register_devices(hwif);
1459 }
1458 } 1460 }
1459 1461
1460 return rc; 1462 return rc;