diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-21 04:14:55 -0400 |
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-21 04:14:55 -0400 |
| commit | db8c076b9206ea35b1f7299708d5510b17674db2 (patch) | |
| tree | 7a5ee32db0c25bb29598c7c300ce7f2680f533a9 /drivers/ide/ide-probe.c | |
| parent | af6261031317f646d22f994c0b467521e47aa49f (diff) | |
| parent | b30a3f6257ed2105259b404d419b4964e363928c (diff) | |
Merge remote branch 'linus' into drm-intel-fixes
Diffstat (limited to 'drivers/ide/ide-probe.c')
| -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 4c3d1bfec0c5..068cef0a987a 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, | |||
| 1448 | if (hwif == NULL) | 1448 | if (hwif == NULL) |
| 1449 | continue; | 1449 | continue; |
| 1450 | 1450 | ||
| 1451 | if (hwif->present) | ||
| 1452 | hwif_register_devices(hwif); | ||
| 1453 | } | ||
| 1454 | |||
| 1455 | ide_host_for_each_port(i, hwif, host) { | ||
| 1456 | if (hwif == NULL) | ||
| 1457 | continue; | ||
| 1458 | |||
| 1459 | ide_sysfs_register_port(hwif); | 1451 | ide_sysfs_register_port(hwif); |
| 1460 | ide_proc_register_port(hwif); | 1452 | ide_proc_register_port(hwif); |
| 1461 | 1453 | ||
| 1462 | if (hwif->present) | 1454 | if (hwif->present) { |
| 1463 | ide_proc_port_register_devices(hwif); | 1455 | ide_proc_port_register_devices(hwif); |
| 1456 | hwif_register_devices(hwif); | ||
| 1457 | } | ||
| 1464 | } | 1458 | } |
| 1465 | 1459 | ||
| 1466 | return j ? 0 : -1; | 1460 | return j ? 0 : -1; |
