]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ide: make ide_unregister() take 'ide_hwif_t *' as an argument (take 2)
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 27 Apr 2008 13:38:31 +0000 (15:38 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 27 Apr 2008 13:38:31 +0000 (15:38 +0200)
commit387750c3bf49c22f6189436032145e2131985076
tree823d10a2e5008048990d66643819a36d5fc70b3f
parentbf64b7a9ddc604883a1f41535d3d7a62bca9ee81
ide: make ide_unregister() take 'ide_hwif_t *' as an argument (take 2)

* Make ide_unregister() take 'ide_hwif_t *hwif' instead of 'unsigned int
  index' (hwif->index) as an argument and update all users accordingly.

While at it:

* Remove unnecessary checks for hwif != NULL from ide-pnp.c::idepnp_remove()
  and delkin_cb.c::delkin_cb_remove().

* Remove needless hwif->chipset assignment from scc_pata.c::scc_remove().

v2:
* Fixup ide_unregister() documentation.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/arm/rapide.c
drivers/ide/ide-pnp.c
drivers/ide/ide.c
drivers/ide/legacy/ide-cs.c
drivers/ide/legacy/ide_platform.c
drivers/ide/mips/au1xxx-ide.c
drivers/ide/pci/delkin_cb.c
drivers/ide/pci/scc_pata.c
include/linux/ide.h