diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-09-19 11:06:34 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-09-19 11:06:34 -0700 |
commit | 81cef8e38babd1dd07eb53fccc956620a1b4f32e (patch) | |
tree | a012ad63404b652379b8a0bed80825266a94eaad /drivers/ide | |
parent | 7d7dee96e1a7369eae67e5fe5c987785a1c11e40 (diff) | |
parent | dbee032295dac88742734ee9988e08a0e4f2f732 (diff) | |
download | op-kernel-dev-81cef8e38babd1dd07eb53fccc956620a1b4f32e.zip op-kernel-dev-81cef8e38babd1dd07eb53fccc956620a1b4f32e.tar.gz |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide-2.6:
ide: Fix ordering of procfs registry.
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-probe.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 4c3d1bfe..068cef0 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c @@ -1448,19 +1448,13 @@ int ide_host_register(struct ide_host *host, const struct ide_port_info *d, 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; |