diff options
Diffstat (limited to 'drivers/ide/ide-probe.c')
-rw-r--r-- | drivers/ide/ide-probe.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index f3ee098b69c7..468c4ac4181d 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c | |||
@@ -1494,3 +1494,21 @@ int ide_device_add(u8 idx[4], const struct ide_port_info *d) | |||
1494 | return ide_device_add_all(idx_all, d); | 1494 | return ide_device_add_all(idx_all, d); |
1495 | } | 1495 | } |
1496 | EXPORT_SYMBOL_GPL(ide_device_add); | 1496 | EXPORT_SYMBOL_GPL(ide_device_add); |
1497 | |||
1498 | void ide_port_scan(ide_hwif_t *hwif) | ||
1499 | { | ||
1500 | ide_port_cable_detect(hwif); | ||
1501 | ide_port_init_devices(hwif); | ||
1502 | |||
1503 | if (ide_probe_port(hwif) < 0) | ||
1504 | return; | ||
1505 | |||
1506 | hwif->present = 1; | ||
1507 | |||
1508 | ide_port_tune_devices(hwif); | ||
1509 | ide_acpi_port_init_devices(hwif); | ||
1510 | ide_port_setup_devices(hwif); | ||
1511 | hwif_register_devices(hwif); | ||
1512 | ide_proc_port_register_devices(hwif); | ||
1513 | } | ||
1514 | EXPORT_SYMBOL_GPL(ide_port_scan); | ||