diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-01 23:09:36 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-01 23:09:36 +0100 |
commit | a14dc57495899175a0827673fe23ed17b5653896 (patch) | |
tree | 230bee815285fa114e7bbead9194bac6eefcbe20 /Documentation/DocBook/procfs-guide.tmpl | |
parent | e84e7ea7c4d0a6d7fbaecab2d85df0298cd9e3b4 (diff) |
ide: move hwif_register() call out of ide_probe_port()
* Add BUG_ON(hwif->present) at the start of ide_probe_port().
* Move hwif_register() call (along with setting hwif->present) from
ide_probe_port() to ide_device_add_all().
As a result the port will be registered with the device tree _after_:
- probing both devices (if both are present)
- port reset (if hwif->reset is set)
- restoring local IRQs state and re-enabling port IRQ
While at it:
* Rename hwif_register() to ide_register_port().
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'Documentation/DocBook/procfs-guide.tmpl')
0 files changed, 0 insertions, 0 deletions