diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-27 09:38:31 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-27 09:38:31 -0400 |
commit | 387750c3bf49c22f6189436032145e2131985076 (patch) | |
tree | 823d10a2e5008048990d66643819a36d5fc70b3f /include/linux/ide.h | |
parent | bf64b7a9ddc604883a1f41535d3d7a62bca9ee81 (diff) |
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>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index a1f290d59fb4..f4c7ec25f614 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1210,7 +1210,7 @@ static inline void ide_acpi_set_state(ide_hwif_t *hwif, int on) {} | |||
1210 | #endif | 1210 | #endif |
1211 | 1211 | ||
1212 | void ide_remove_port_from_hwgroup(ide_hwif_t *); | 1212 | void ide_remove_port_from_hwgroup(ide_hwif_t *); |
1213 | void ide_unregister(unsigned int); | 1213 | void ide_unregister(ide_hwif_t *); |
1214 | 1214 | ||
1215 | void ide_register_region(struct gendisk *); | 1215 | void ide_register_region(struct gendisk *); |
1216 | void ide_unregister_region(struct gendisk *); | 1216 | void ide_unregister_region(struct gendisk *); |