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>
This commit is contained in:
@@ -1453,8 +1453,10 @@ int ide_device_add_all(u8 *idx, const struct ide_port_info *d)
|
||||
|
||||
hwif = &ide_hwifs[idx[i]];
|
||||
|
||||
if (hwif->present)
|
||||
if (hwif->present) {
|
||||
ide_proc_register_port(hwif);
|
||||
ide_proc_port_register_devices(hwif);
|
||||
}
|
||||
}
|
||||
|
||||
return rc;
|
||||
|
Reference in New Issue
Block a user