]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ide: add ide_deprecated_find_port() helper
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 2 Feb 2008 18:56:39 +0000 (19:56 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 2 Feb 2008 18:56:39 +0000 (19:56 +0100)
commit9e016a719209d95338e314b46c3012cc7feaaeec
treecc19b160cfb6210385fbf29890351f9ca2ba73df
parentf82c2b171905b6d5af92395d8159546351ab602f
ide: add ide_deprecated_find_port() helper

* Factor out code for finding ide_hwifs[] slot from ide_register_hw()
  to ide_deprecated_find_port().

* Convert bast-ide, ide-cs and delkin_cb host drivers to use ide_device_add()
  instead of ide_register_hw() (while at it drop doing "ide_unregister()" loop
  which tries to unregister _all_ IDE interfaces if useable ide_hwifs[] slot
  cannot be find).

This patch leaves us with only two ide_register_hw() users:
- drivers/macintosh/mediabay.c
- drivers/ide/ide.c

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/arm/bast-ide.c
drivers/ide/ide.c
drivers/ide/legacy/ide-cs.c
drivers/ide/pci/delkin_cb.c
include/linux/ide.h