From: Bartlomiej Zolnierkiewicz Date: Fri, 1 Feb 2008 22:09:36 +0000 (+0100) Subject: ide: move hwif_register() call out of ide_probe_port() X-Git-Tag: v2.6.25-rc1~1078^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a14dc57495899175a0827673fe23ed17b5653896;p=pandora-kernel.git 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 --- Reading git-diff-tree failed