kernel_optimize_test/drivers/ide
Bartlomiej Zolnierkiewicz a14dc57495 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>
2008-02-01 23:09:36 +01:00
..
arm ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
cris ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
h8300 ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
legacy ide_platform: remove struct hwif_prop 2008-02-01 23:09:35 +01:00
mips ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
pci ide: make probe_hwif() return an error value 2008-02-01 23:09:36 +01:00
ppc ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
ide-acpi.c ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
ide-cd_ioctl.c ide-cd: move the remaining cdrom.c ioctl handling code to ide-cd_ioctl.c 2008-02-01 23:09:29 +01:00
ide-cd_verbose.c ide-cd: move VERBOSE_IDE_CD_ERRORS code to ide-cd_verbose.c 2008-02-01 23:09:23 +01:00
ide-cd.c ide: update/add my Copyrights 2008-02-01 23:09:33 +01:00
ide-cd.h ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
ide-disk.c ide: update/add my Copyrights 2008-02-01 23:09:33 +01:00
ide-dma.c ide: update/add my Copyrights 2008-02-01 23:09:33 +01:00
ide-floppy.c ide-floppy: cleanup header 2008-02-01 23:09:33 +01:00
ide-generic.c ide: remove ideprobe_init() 2008-01-26 20:13:05 +01:00
ide-io.c ide: fix ide_intr() for non-PCI devices and CONFIG_BLK_DEV_IDEPCI=y 2008-02-01 23:09:31 +01:00
ide-iops.c ide: make probe_hwif() return an error value 2008-02-01 23:09:36 +01:00
ide-lib.c ide: keep pointer to struct device instead of struct pci_dev in ide_hwif_t 2008-02-01 23:09:31 +01:00
ide-pnp.c ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
ide-probe.c ide: move hwif_register() call out of ide_probe_port() 2008-02-01 23:09:36 +01:00
ide-proc.c ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
ide-scan-pci.c ide: small ide-scan-pci.c cleanup 2008-02-01 23:09:16 +01:00
ide-tape.c ide: update/add my Copyrights 2008-02-01 23:09:33 +01:00
ide-taskfile.c ide: update/add my Copyrights 2008-02-01 23:09:33 +01:00
ide-timing.h ide: delete filenames/versions from comments 2008-02-01 23:09:33 +01:00
ide.c ide: use ide_remove_port_from_hwgroup in init_irq() 2008-02-01 23:09:36 +01:00
Kconfig ide-cd: move VERBOSE_IDE_CD_ERRORS code to ide-cd_verbose.c 2008-02-01 23:09:23 +01:00
Makefile ide-cd: move code handling cdrom.c IOCTLs to ide-cd_ioctl.c 2008-02-01 23:09:25 +01:00
setup-pci.c ide: update/add my Copyrights 2008-02-01 23:09:33 +01:00