diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-02 13:56:39 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-02 13:56:39 -0500 |
commit | f82c2b171905b6d5af92395d8159546351ab602f (patch) | |
tree | 89790c732a73c3210b5f8578d3a94a2717ab7b3b /include/linux | |
parent | ead741df385607ab74876afdb05fd8ac27da9906 (diff) |
ide: add 'init_default' and 'restore' arguments to ide_unregister()
* Add 'init_default' (flag for calling init_hwif_default()) and 'restore'
(flag for calling ide_hwif_restore()) arguments to ide_unregister().
* Update ide_unregister() users to set 'init_default' and 'restore' flags.
* No need to set 'init_default' flag in ide_register_hw() if the setup done
by init_hwif_default() is going to be overridden by ide_init_port_hw().
* No need to set 'init_default' and 'restore' flags in cleanup_module().
There should be no functionality changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux')
-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 f7fe8b1fe681..8ae0480af008 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1208,7 +1208,7 @@ static inline void ide_acpi_set_state(ide_hwif_t *hwif, int on) {} | |||
1208 | void ide_remove_port_from_hwgroup(ide_hwif_t *); | 1208 | void ide_remove_port_from_hwgroup(ide_hwif_t *); |
1209 | extern int ide_hwif_request_regions(ide_hwif_t *hwif); | 1209 | extern int ide_hwif_request_regions(ide_hwif_t *hwif); |
1210 | extern void ide_hwif_release_regions(ide_hwif_t* hwif); | 1210 | extern void ide_hwif_release_regions(ide_hwif_t* hwif); |
1211 | extern void ide_unregister (unsigned int index); | 1211 | void ide_unregister(unsigned int, int, int); |
1212 | 1212 | ||
1213 | void ide_register_region(struct gendisk *); | 1213 | void ide_register_region(struct gendisk *); |
1214 | void ide_unregister_region(struct gendisk *); | 1214 | void ide_unregister_region(struct gendisk *); |