Skip to content

Commit

Permalink
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide-2.6
Browse files Browse the repository at this point in the history
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide-2.6:
  ide: Fix ordering of procfs registry.
  • Loading branch information
Linus Torvalds committed Sep 19, 2010
2 parents 7d7dee9 + dbee032 commit 81cef8e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1444,23 +1444,17 @@ int ide_host_register(struct ide_host *host, const struct ide_port_info *d,
ide_acpi_port_init_devices(hwif);
}

ide_host_for_each_port(i, hwif, host) {
if (hwif == NULL)
continue;

if (hwif->present)
hwif_register_devices(hwif);
}

ide_host_for_each_port(i, hwif, host) {
if (hwif == NULL)
continue;

ide_sysfs_register_port(hwif);
ide_proc_register_port(hwif);

if (hwif->present)
if (hwif->present) {
ide_proc_port_register_devices(hwif);
hwif_register_devices(hwif);
}
}

return j ? 0 : -1;
Expand Down

0 comments on commit 81cef8e

Please sign in to comment.